LVARCHAR is a character data type that allows storing character data in variable-length fields as strings of single-byte or multibyte letters, numbers, symbols, white space, and unprintable characters.
You can use LVARCHAR variables both as program variables in your 4gl modules and for working with databases.
In 4gl modules, you can declare these variables directly with a LVARCHAR keyword:
DEFINE var LVARCHAR(34343)
The default maximum size of an LVARCHAR variable is 2048 bytes (it is applied if you declare an LVARCHAR variable without specifying its maximum size). The total length of an LVARCHAR variable cannot exceed 65,534 bytes.
The default maximum size of an LVARCHAR column is 2048 bytes (it is applied if you declare an LVARCHAR variable without specifying its maximum size). LVARCHAR data type is used to create columns for storing variable-length character strings up to 32,739 bytes long.
LVARCHAR data type was introduced to bypass the size limitation of the standard VARCHAR type (that used to store only 255 bytes of data).
That is why, LVARCHAR resembles the VARCHAR data type in many ways:
Unlike VARCHAR, LVARCHAR has no reserved parameter.
The database server uses LVARCHAR to represent the external format of opaque data types. In I/O operations of the database server, LVARCHAR values have no upper size limit - their size is only limited by the size of the file size or by restrictions of your operating system or hardware resources.
Static SQL statements such as CREATE TABLE can create LVARCHAR columns.