![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
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 |
|
||||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |