Progress
Programming
Handbook
DEFINED( ) Preprocessor Function
The DEFINED( ) preprocessor function takes a preprocessor name or include file parameter as an argument. The preprocessor name argument is not quoted, does not have an ampersand in front of it, and is not in the reference form, {&preprocessor–name}. For example, if you had defined the preprocessor name MAX–EXPENSE, the argument would appear as follows:
The DEFINED( ) function returns a value of 1 if the argument was a name defined with the &GLOBAL–DEFINE directive; a value of 2 if the argument was passed as an include file parameter; and a value of 3 if the argument was a name defined with the &SCOPED–DEFINE directive. If the argument was not defined and was not an include file parameter, this function returns a value of 0. The value returned refers to the definition that is current at the point of the call.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |