April 23, 2024, 05:31:45 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


$REGION / $ENDREGION

Started by LarryMc, June 19, 2012, 07:27:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

I've used these directives in the past to hide blocks of code.
I tried to use then today and the use of them generates errors when I try to compile.
Anyone else using IWB2 having this problem?
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

Figured out what was going on.
1st - I should have been using 'REGION / 'ENDREGION  which works.
After a little testing:
2nd - It appears that $REGION / $ENDREGION will compile only when used inside an $ASM / $ENDASM block.
  Note: It doesn't compile inside an $IFDEFINE / $ENDIF block either.
I'll update the appendix section covering directives in the help file
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library