Skip to content

Category Array Functions

Paul Squires edited this page Oct 19, 2026 · 2 revisions

Home › All Categories › Array Functions

Array Functions

Grouped by task. Collections lists them beside the rest of the area.

Built-in arrays: bounds and size

Function What it does From
UBound Returns the highest valid index of an array dimension, or -1 if there is none. built-in
LBound Returns the lowest valid index of an array dimension, or 0 if there is none. built-in
ArrayLen Returns the total number of elements in an array, counting every dimension. fbc-int/array.bi
ArraySize Returns the total size of an array's elements in bytes. fbc-int/array.bi
FBARRAY Holds an array's descriptor: its bounds, sizes and data pointers. fbc-int/array.bi

Built-in arrays: resize and erase

Function What it does From
ReDim Creates or resizes a variable-length array; elements are reset unless Preserve is used. built-in
Preserve Keeps the existing elements when ReDim resizes an array. built-in
Erase Frees a variable-length array's elements, or resets those of a fixed-length array. built-in

Also in this category


Home · Keyword Index

Clone this wiki locally