FDECLARED
The FDECLARED compiler directive allows conditional compilations based on the existence of a specified label within the namespace of a FUNCTION. The instruction uses the following format:
|
|
|
|
Where:
label
Required. A valid data or program execution label.
Flags Affected: NONE
Note the following:
This directive operator is only valid in %IF, CIF, %ELSEIF, or CELSEIF statements.
The exact syntax of the directive must be followed.
This directive identifies labels that exist only within the scope of a FUNCTION/FUNCTIONEND declaration.
During compilation, the operator is replaced with a single digit as follows:
|
Digit |
When the label is ... |
|
0 |
neither a data nor an execution label reference. |
|
1 |
a data label reference. |
|
2 |
an execution label reference that is unresolved. |
|
3 |
both a data and an execution label reference that is unresolved. |
|
4 |
an execution label reference that is resolved. |
|
5 |
both a data and an execution label reference that is resolved. |
An execution label is unresolved when it has been placed into the symbol table before the statement that declares the execution label is encountered.
An execution label is resolved when the program statement that declares the execution label is encountered.
See Also: Example Code, Compiler Directives
![]() |