Author Topic: ?ENDIF + Remark ERROR  (Read 1274 times)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2740
    • View Profile
?ENDIF + Remark ERROR
« on: 2010-Mar-04 »
To get the bug...

Code: (glbasic) [Select]
?ENDIF //<- This remark causes the following problem.
Code: (glbasic) [Select]
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.6.873 SN:2a049f7b - 3D, NET
"controls.gbas"(0) error : IF without ENDIF / THEN

To remove the bug...

Code: (glbasic) [Select]
?ENDIF
...remove the remark.

This was an incredible pain to find as it always reported that the problem was with an ordinary 'IF/THEN/ENDIF' at line 0, no matter where the problem was.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10803
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: ?ENDIF + Remark ERROR
« Reply #1 on: 2010-Jun-01 »
OK, fixed in next update.
« Last Edit: 2010-Jun-01 by Kitty Hello »