You have to declare the data type of these 4GL objects:
Below, you can find the list of data types supported by Querix 4GL and Lycia (in the alphabetical order):
|
data types |
synonyms |
description |
|
|
stores sets of values of any single 4GL data type. The upped bound for the number of array elements must be set |
|
|
|
stores 8-byte integer values in the range −(263 −1) to 263 −1 |
|
|
|
stores binary data of any kind, up to 231 bytes long |
|
|
BOOL |
provides a simple Boolean type, variable of this data type can be either TRUE or FALSE |
|
|
CHARACTER |
stores character strings up to 65,534 bytes long |
|
|
|
stores information about a cursor |
|
|
|
stores specific calendar dates |
|
|
|
stores specific calendar dates together with time values |
|
|
DEC, NUMERIC |
stores fixed-point numbers with a specified precision and number of decimal places floating-point numbers, with a specified precision but with undefined number of decimal places |
|
|
|
stores sets of values of any single 4GL data type. It has no obligatory upper bound for the number of its elements |
|
|
DOUBLE PRECISION |
stores floating-point numbers with up to 14 significant digits |
|
|
|
stores information about a form |
|
|
INT |
stores any whole numbers within the range -2,147,483,647 to 2,147,483,647 |
|
|
|
stores a defined period of time (hours and minutes or months and years) |
|
|
|
stores currency units with definable precision and number of decimal places |
|
|
|
stores information about a prepared statement |
|
|
|
stores an ordered set of values which can be made up of any combination of data types |
|
|
REAL |
stores floating-point numbers, with up to 16 significant digits |
|
|
|
stores whole numbers within the range of -32,767 to 32,767 |
|
|
|
provides a variant holder for the character strings |
|
|
|
stores character strings up to 231 bytes long |
|
|
|
stores whole numbers within the range of -128 to 127 |
|
|
|
stores character strings up to 65534 characters long |
|
|
|
stores information about a 4GL window |
All the data types except for the RECORD, ARRAY and DYNAMIC ARRAY data types correspond to the built-in SQL data types. The data types of Querix 4GL can be regarded as a set of the SQL data types recognized by Querix 4GL, with some restrictions:
All data types can be divided into four groups:
Data values in Querix 4GL must belong to some data type. Data type is a 4GL category that describes which type of data is stored in a variable or a column, etc. The types of operations that can be performed on a value depend on its data type.
Some data types are compatible; this means that a value of one data type can be converted to another data type.