Its been years since I programmed in BASIC, but I have used FOR-NEXT loops successfully, in alot of programs. I'm having trouble with the following example usage, PBP keeps giving me a syntax error.......

cycles VAR WORD

cycles = 15

For i = 1 to cycles <== this line is flagged as a sytax error

<do something in here>

Next i

end


This is just an example, its not my real program. I believe the issue is that PBP expects me to give it a firm number or constant for the number of loops, it doesnt like the "cycles" variable. I really need to have a variable, though. Can someone help?

Thanks,

Bill