qck.hlp (Table of Contents; Topic list)
Fixed-Length String Arrays
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Fixed-Length String Arrays
 
 ■ The DIM statement can be used to declare fixed-length string arrays. For
   example:
 
         DIM FixedStringArray(1 TO 100) AS STRING * 16
 
   where 16 is the length, in bytes, of each array element.
   See: DIM Statement
 
 ■ Any unused space in a particular element will be padded with spaces.
 
 ■ A fixed-length string array name cannot include the dollar sign ($)
   suffix, which denotes a variable-length string. References to the array
   and manipulations of string elements work the same as with any other
   string array. For example, the following statement prints the left two
   characters of the 10th array element:
 
         PRINT LEFT$(FixedStringArray(10),2)
 
 ■ Fixed-length strings are stored in the same manner as numeric data:
   • A fixed-length string scalar is stored in DGROUP
   • An element of a static array of fixed-length strings is stored in DGROUP
     in a compiled program and in the far heap in an interpreted program
   • An element of a dynamic array of fixed-length strings is stored in the
     far heap