-->
Page 1 of 3

arrays not working ver2.0

PostPosted: Tue Aug 02, 2016 10:55 pm
by kingedem
Arrays not working in ver 2.0
Pls show example code to use arrays.

Re: arrays not working ver2.0

PostPosted: Tue Aug 02, 2016 10:59 pm
by Mmiscool
Have you tried in version 3?

Re: arrays not working ver2.0

PostPosted: Tue Aug 02, 2016 11:05 pm
by kingedem
Not yet... I will try and inform. Between, pls give me small example code to loop through array.

Re: arrays not working ver2.0

PostPosted: Tue Aug 02, 2016 11:19 pm
by Mmiscool
The following should work but i have not tested.

If you are making a string array it must end with a $ as shown below. Numeric arrays must not end with a $.

Code: Select alldim bla$(10)
'fill array with stuff
for x = 1 to 10
   bla$(x) = str(x) & " is my loop no"
next x

'print stuff from array
for x = 1 to 10
   print bla$()
next x