String Array Operations


Like numeric arrays, there are several operations that affect every element of a string array at once.


For example:

a$() = "Hello"

Here every element of a$() is set to the word "Hello"


Concatenation is also supported.

For example:

a$() = a$() + " there"

Now every element of a$() is set to "Hello there"


The last operation is to concatenate the elements of one string array to the corresponding elements of a second array.

For example:

a$() = "Hello"

b$() = " there"

a$() = a$() + b$()

Now every element of a$() is set to "Hello there"

The contents of a$() and b$() can be anything, and each element of the first array will be concatenated with each element of the second array.

a$(0) = a$(0) + b$(0)

...

a$(n) = a$(n) + b$(n)


String arrays may be the target of function assignments.

As in:

a$() = Sort(b$())

Here the string array b$() is sorted and the results are stored in a$().



Arrays and Subscripts






Become a Patron