Array Functions

FreeBASIC

Array Functions
 
Statements and procedures for working with arrays.

Defining Arrays
Statements that create arrays.
Clearing Array Data
Procedures that work with array memory.
Retrieving Array Size
Procedures that return bounds of an array's dimension.

Defining Arrays
Option Dynamic
Forces arrays to be defined as variable-length arrays.
'$Dynamic
Alternate form of the Option Dynamic statement.
Option Static
Reverts a previous Option Dynamic command.
'$Static
Alternate form of the Option Static statement.
ReDim
Defines and resizes variable-length arrays.
Preserve
Preserves array contents when used with ReDim.

Clearing Array Data
Erase
Destroys variable-length array elements and initializes fixed-length array elements.

Retrieving Array Size
LBound
Returns the lower bound of an array's dimension.
UBound
Returns the upper bound of an array's dimension.