for.next.step

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

some of you may have read this in another topic...
I'd like to see the "step" portion of the for.next.step command
be able to use a variable, not just a constant.

Edited by - TronDoc on 09 February 2002 13:09:22
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi TronDoc :wink:

What about using "Repeat/Until" instead of "For/Next/Step"? :wink: I think this should solve your small problem :wink: Good Luck... (pseudo-code:)

Repeat
n=n+count
print n
Until n >= 10

greetz



MrVainSCL!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

not as easy to read,
but if that's what I must do...

...many thanks for you input.

Joe :)

elecTRONics DOCtor
I heal your sick equipment!
{btw I did register my PB}
Post Reply