Any command that is handled in the preprocess direct queue is subject to this type of problem.
Move that FOO before INIT and that $LET isn't going to work or trigger for you. It works solely on a first come, first serve basis.
Other things of similar processing:
OPTION BASE 0/1
DEF(any)
_DEFINE
$CHECKING:ON/OFF
$RESIZE:whatever
Heck almost any of the metacommands are handled on a top/down flow.
With the above, you've basically screwed with $CHECKING completely opposite of how you intended.
So any of these precompiler type commands work with like this. Beware when moving subs/functions. It's not as simple as it seems.
Code: (Select All)
SUB INIT
$LET whatever = TRUE
END SUB
SUB FOO
$IF whatever THEN
END SUBMove that FOO before INIT and that $LET isn't going to work or trigger for you. It works solely on a first come, first serve basis.
Other things of similar processing:
OPTION BASE 0/1
DEF(any)
_DEFINE
$CHECKING:ON/OFF
$RESIZE:whatever
Heck almost any of the metacommands are handled on a top/down flow.
Code: (Select All)
SUB INIT
$CHECKING OFF
END SUB
SUB FOO
$CHECKING:ON
END SUBWith the above, you've basically screwed with $CHECKING completely opposite of how you intended.
So any of these precompiler type commands work with like this. Beware when moving subs/functions. It's not as simple as it seems.

