I have read TDK's tutorials, read the helpfiles and done some minor searching. I have 20 days programming experience. And most of all, Im stuck and in need some assistance.(I hope this is enough to not get reprimanded again.)
I was practicing on printing array data using for-next when i get an error message that I don't totally understand.
dim dummy$(3)
dummy$(1)="1"
dummy$(2)="2"
dummy$(3)="3"
for T=1 to 3
text 0,20*T,dummy$(T)
next
suspend for key
end
this gives an error message:
NEXT only takes one parameter at line 12.
Line 12 is the:
for T=1 to 3
I wrote this next code but it only printed the first array data
dim dummy$(3)
dummy$(1)="1"
dummy$(2)="2"
dummy$(3)="3"
T=1
while T<3
text 0,20*T,dummy$(T)
inc T
endwhile
suspend for key
end
For now, Im trying to find a suitable and comfortable programming style or pattern(not sure about the correct term i should be writing)
.
This for-next and while-endwhile using array data is quite important to me because I haven't figured an alternate code that does this job for me.
The codes above are mimic codes that give the same error.
The original code I was working on used sprites and png images. I just realized that the error was because of the for-next so i just made another code that gives the same error to shorten the code and make less hassle for people who would help me.