October 29, 2025, 01:10:43 PM

News:

IWBasic runs in Windows 11!


Puzzled...

Started by Brian, December 08, 2014, 11:52:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hi,

While trying to compile an old .IBA source file (not .IWB) I came across this line:

FOR ii = rmax TO 0 #-1

Of course, IWB didn't like the hash, but taking it out causes the program not to work correctly
What is the meaning of the hash (de-referencing?), and how do I get round it?

Brian

LarryMc

I have never seen that before.
The proper syntax would be
FOR ii = rmax TO 0 STEP -1
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

GWS

Hi,

The #number was an old form of STEP and could be used interchangeably  ;D

FOR counter = 1 TO 20 #2

or alternatively, FOR counter = 1 TO 20 STEP 2

Even the user guide got a little confused, referring to SKIP rather than STEP.

Graham
Tomorrow may be too late ..

Brian

Thanks to Larry and Graham for clearing that one up - I eventually settled for STEP myself,
although I have never seen the hash used like that before

Brian