Loop throws 405: not a statement error

WizardOz

Member
Licensed User
Longtime User

This code:


B4X:
Dim Tid_Liste() As String
Dim Temp_global as Int

For Temp_global = 2 To 6
   Tid_Liste(Temp_global-1)=Tid_Liste(Temp_global)
Next Temp_global

trows this error:

B4X:
Tid_Liste(Temp_global-1)=Tid_Liste(Temp_global)
javac 1.6.0_21
main.java:405: not a statement
}_temp_global;
 ^
1 error

Why?????? Anyone? :confused:
 

WizardOz

Member
Licensed User
Longtime User
aaand I will be answering this myself...

B4X:
For X = 1 to 10
...
Next X

is not the way of B4A...
This is the right path to non-error:

B4X:
For X = 1 to 10
...
Next

So, I will be saying as Mr.Simpson does; "Dohh"... :signOops:
 
Upvote 0
Top