To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
DEFINE statement is used to declare the names and the data types of the 4GL variables.
DEFINE statement can be followed by one or more declare blocks separated by commas:
Element |
Description |
Data Type Declaration |
A block where a user-defined data type is declared |
Variable Declaration |
A block where the data type of a variable is declared |
There are two patterns of declaration in Querix 4GL:
Variable Declaration block is used to declare a variable of any 4GL data type or of a user-defined data type (see "Variable Declaration")
Data Type Declaration block is where a new user-defined data type can be declared (see "Data Type Declaration")
These blocks can co-exist within one DEFINE statement.
A name of a variable can be any set of characters except for the names that are reserved for the built-in global variables like status, int_flag, quit_flag, etc. A variable that has not been defined cannot be used in the program code.
The total space that can be occupied by the variable names of one program is limited to 2 gigabytes, although your system can impose additional constraints on the storage space available for the variable names. In programs compiled to p-code, the storage space allocated for the variable names of a report or a function cannot be larger than 32,767 bytes.
The variables defined within a GLOBALS file can be visible to all the program modules which use this GLOBALS file.