For loop with Byte doesn't work

Mac OSX specific forum
Niffo
Enthusiast
Enthusiast
Posts: 504
Joined: Tue Jan 31, 2006 9:43 am
Location: France

For loop with Byte doesn't work

Post 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
Niffo
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: For loop with Byte doesn't work

Post 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 :)
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Post Reply