#DEFINE
|
Syntax: |
#DEFINE <Compiler
Variable>,<Number>
|
||||||||||||
|
|
|
||||||||||||
|
Meaning: |
#DEFINE defines a numeric compiler
variable. With the compiler instruction #IF <NUM-VARIABLE>
it can be tested whether a variable exists and has a value <> 0. #DEFINE instructions are possible in all
macros at any positions. Whether a variable is specified at the compilation
of a macro depends on whether the macro in which the variable had been
specified with #DEFINE has already been compiled. The order by which the
macros are compiled is not always clearly apparent. Therefore the #DEFINE
instructions should always be defined in the Macro before Index Open,
because in every program this macro is the first one to be compiled. Note: Compiler variable only apply to the current program, not to
subprograms. The following compiler variables are set
automatically with the generation:
|
||||||||||||
|
Parameter: |
|
||||||||||||
|
Sample: |
#DEFINE DEMO 1 ... #IF DEMO IF RECNUMBER(CUSTOMER)
> 10 THEN ERRORMES
= "In the demo version you
cannot save " + "more than 10 data
records." ENDIF #ENDIF |
||||||||||||
|
See also: |
|