String arrays

The elements of string arrays hold strings instead of numbers.  Each string can be a different length.  For example DIM words$(50) creates a sequence of 51 independent string variables:

DIM words$(50)

words$(0) = "Daniel likes cats."      ' 18-character string

words$(1) = ""                        ' a null string

words$(2) = "Nicki is a sweet child." ' 23-character string

' assign more array values here

words$(50) = SPACE$(200)              ' 200-character string

 

See Also

Array Data Types

Multidimensional arrays

Array storage requirements

Internal representations of arrays

Arrays within User-Defined Types

Array operations

POWERARRAY Object