Domain: | Variable access / test functions |
The IS-INITIALIZED( ) function checks whether the specified variable has been initialized, i.e. whether its contents are valid. Even a null string is valid as the contents. A variable cannot be initialized unless it has been declared.
Format
IS-INITIALIZED( ) |
VARIABLE-NAME = string_expression |
Result type
BOOLEAN
Input parameters
VARIABLE-NAME = string_expression
Designates a variable. The variable name must be enclosed in apostrophes if it is specified directly, i.e. as a literal. A list variable must be identified in the form 'listenname#'. Individual list elements can be specified in the form 'listenname#elementindex'.
Result
TRUE
The variable designated by the VARIABLE-NAME parameter has been initialized.
FALSE
The variable designated by the VARIABLE-NAME parameter has not been initialized.
Error message
SDP1101 SYNTAX ERROR IN VARIABLE NAME