Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Missing '(' error


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2007, 10:45 AM
Junior Member
 
Join Date: May 2007
Posts: 46
Default Missing '(' error

Hi,
I have a problem with my program in version 5. In version 4 it works, but in new version I'm getting an error message :
Error description: Missing '(' after array variable.
For i= 0 to ArrayLen(DecInput) - 1

This is a part of program where error occurs.

Sub Globals
Dim DecInput(100)
End Sub

Sub App_Start
Form1.Show
DecInput() = serial.InputArray

For i = 0 to ArrayLen(DecInput) - 1
'something
Next i
End Sub


Could anybody help me, please ?

Thanks
Petr
Reply With Quote
  #2 (permalink)  
Old 05-22-2007, 11:08 AM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 67
Default

Hi petrbury,
this should work
Code:
For i = 0 to ArrayLen(DecInput()) - 1
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, XP SP3
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: Clip-on Bluetooth, Navman 3000
Reply With Quote
  #3 (permalink)  
Old 05-22-2007, 11:08 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi
I dont think you need the ArrayLen(DecInput) - 1 as by defenition arraylenght is from 0 to arraylenghth-1

so in your case arraylen is 99

Try the followin:

MsgBox(ArrayLen(decInput))

it shoul give you 99
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 05-22-2007, 11:12 AM
Junior Member
 
Join Date: May 2007
Posts: 46
Default

Thank you Wolfgang, I just wanted edit my question - I found it allready . It was my mistake ( but in version 4 it worked).
I wonder how many errors are waiting for me in my old applications .
Petr
Reply With Quote
  #5 (permalink)  
Old 05-22-2007, 11:18 AM
Junior Member
 
Join Date: May 2007
Posts: 46
Default

Hi Cableguy,
in my case the array DecInput is filled from serial com, so I don't know how many bytes are in it. That's the reason I use this way.
Petr
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CryptoEx - I'm missing something here :( LineCutter Questions & Help Needed 4 10-12-2008 01:23 PM
Tab Control dll missing Graley Questions & Help Needed 2 01-02-2008 05:10 PM
Missing DLL willisgt Questions & Help Needed 1 12-13-2007 05:23 AM
Missing posts Cableguy Forum Discussion 1 07-23-2007 07:51 PM
Missing ImageLib.dll specci48 Bug Reports 1 05-19-2007 06:50 PM


All times are GMT. The time now is 03:35 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0