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.
You have to declare the data type of these 4GL objects:
variables,
form-only fields,
formal arguments used in functions or reports (they cannot be of ARRAY data type),
values returned by any functions.
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:
SQL data type SERIAL cannot be used in Querix 4GL statements, you should substitute INTEGER for SERIAL data type in the statements that are not SQL statements.
NCHAR and NVARCHAR data types are recognized by Querix 4GL. However, they are mainly used to work with the database columns of VCHAR and NVARCHAR data types.
Querix 4GL does not recognize the BITVARYING, BLOB, CLOB, DISTINCT, LIST, MULTISET, OPAQUE, REFERENCE, ROW, SET, and the user-defined data types of Informix database servers.
All data types can be divided into four groups:
Simple data types (including numeric, character, and time data types)
Large data types (TEXT and BYTE)
Structured data types (RECORD, ARRAY and DYNAMIC ARRAY)
Object data types (CURSOR, FORM, PREPARED, WINDOW)
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.