Thank you gentlemen!
It works great.
Announcement
Collapse
No announcement yet.
%pb_cc32
Collapse
X
-
Originally posted by Clay Clear View PostIn earlier versions of the compilers, %pb_cc32 was only defined in the PB/CC compilers, and did not exist in the other compilers. Either the PBWIN 8 Help is in error, or PB, Inc. has changed the way that equate is set up and used.
Try this version of your code instead:
Code:#IF %DEF(%PB_CC32) WAITKEY$ #ENDIF
Code:FUNCTION Wait4Key() AS STRING '------------------------------- #IF DEF(%PB_CC32) FUNCTION = WAITKEY$ #ENDIF END FUNCTION ... IF Wait4Key = "x" THEN {do something..bail-out?}
Leave a comment:
-
In earlier versions of the compilers, %pb_cc32 was only defined in the PB/CC compilers, and did not exist in the other compilers. Either the PBWIN 8 Help is in error, or PB, Inc. has changed the way that equate is set up and used.
Try this version of your code instead:
Code:#IF %DEF(%PB_CC32) WAITKEY$ #ENDIF
Leave a comment:
-
%pb_cc32
I have included the following code in my program so that I can compile with either PBCC or PBWin without having to worry about the WAITKEY$
statement. However, I get a compile error
Error 460 in F:\... Undefined equate
Line 228: #IF %PB_CC32Code:#IF %PB_CC32 WAITKEY$ #ENDIF
%PB_CC32 Pre-defined as TRUE (non-zero) in PB/CC for Windows. Defined as FALSE (zero) in other compilers.Tags: None
Leave a comment: