ArrayList Class

This class has no description.

Methods 18

Name Description
ArrayList

Creates a dynamic global cell array. While slower than a normal array, it can be used globally AND dynamically, which is otherwise impossible.

Clear

Clears an array of all entries. This is the same as Resize(0).

Clone

Clones an array, returning a new handle with the same size and data. This should NOT be confused with CloneHandle. This is a completely new handle with the same data but no relation to the original. It should closed when no longer needed.

Erase

Removes an array index, shifting the entire array down from that position on. For example, if item 8 of 10 is removed, the last 3 items will then be (6,7,8) instead of (7,8,9), and all indexes before 8 will remain unchanged.

FindString

Returns the index for the first occurrence of the provided string. If the string cannot be located, -1 will be returned.

FindValue

Returns the index for the first occurrence of the provided value. If the value cannot be located, -1 will be returned.

Get

Retrieves a cell value from an array.

GetArray

Retrieves an array of cells from an array.

GetString

Retrieves a string value from an array.

Push

Pushes a value onto the end of an array, adding a new index.

PushArray

Pushes an array of cells onto the end of an array. The cells are pushed as a block (i.e. the entire array sits at the index), rather than pushing each cell individually.

PushString

Pushes a string onto the end of an array, truncating it if it is too big.

Resize

Resizes an array. If the size is smaller than the current size, the array is truncated. If the size is larger than the current size, the data at the additional indexes will not be initialized.

Set

Sets a cell value in an array.

SetArray

Sets an array of cells in an array.

SetString

Sets a string value in an array.

ShiftUp

Shifts an array up. All array contents after and including the given index are shifted up by one, and the given index is then "free." After shifting, the contents of the given index is undefined.

SwapAt

Swaps two items in the array.

Properties 1

Name Type Description
Lengthint

Retrieve the size of the array.