6. Embedded QUEL for BASIC : BASIC Variables and Data Types : Variable and Type Declarations : The String Data Type
 
Share this page                  
The String Data Type
EQUEL accepts both fixed-length and dynamic string declarations. Strings can be declared to EQUEL using any of the declarations listed later. Note that you can indicate string length only for non-dynamic strings; that is, for string declarations appearing in common, map or record declarations. For example,
##   common (globals) string ename = 30
is acceptable, but
##   declare string bad_str_var = 30 ! length is illegal
will generate an error.
The reference to an uninitialized BASIC dynamic string variable in an embedded statement that assigns the value of that string to Ingres results in a runtime error because an uninitialized dynamic string points at a zero address. This restriction does not apply to the retrieval of data into an uninitialized dynamic string variable.