Page 1 of 1

For loop with Byte doesn't work

Posted: Wed Mar 01, 2006 11:59 am
by Niffo
This code doesn't work ... The MacOS version of PB doesn't like bytes ?

Code: Select all

for i.b = 1 to 10
    debug i
next i

Re: For loop with Byte doesn't work

Posted: Thu Mar 09, 2006 5:30 pm
by michel51
Hi Niffo,
Niffo wrote:This code doesn't work ... The MacOS version of PB doesn't like bytes ?

Code: Select all

for i.b = 1 to 10
    debug i
next i
You're right, the code doesn't work, but MacOS likes bytes.
I think, the loop-variable "i" always is LONG, so it cannot work.

Also try i.w and i.l

Maybe Fred can say more :)