Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Fixed-Length String Arrays
◄10 Questions► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
How do I declare a fixed-length string array?
Here is an example:
DIM FixedStringArray(1 TO 100) AS STRING * 16
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
manipulation of string elements works 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)