Array Functions

See Also: Array Types

Function

Returns

AppendArray

Returns an array consisting of one array appended to another array.

BinarySearchArray

Returns the index of the first element in the array (or indicated element range) equal to a particular value. Very efficient for large arrays.

BinarySearchInsertPos

Returns the position in an array where a missing item should be inserted.

CopyArray

Returns array representing a range of elements from the existing array.

CountArray

Returns the number of array elements whose value is equal to a test value.

FillArray

Fills an array element range with a specified value.

InsertInArray

Returns an expanded copy of the specified array that includes one new element inserted at the specified index.

IsSameArray

Used to determine if two arrays are the same in all but name.

MaxArray

Returns index of array element with the highest (maximum) value.

MinArray

Returns index of array element with the lowest (minimum) value.

RemoveFromArray

Returns a contracted copy of the specified array where the element at the specified index is removed.

ResizeArray

Adds new elements or removes elements from a dynamic array.

ReverseArray

Returns array with elements in reverse order of original array.

SearchArray

Returns the index of the first element in the array (or indicated element range) equal to a particular value or -1 if the search was unsuccessful.

ShuffleArray

Returns array with elements in shuffled (random) order of original array.

SizeOfArray

Returns the number of elements in an array or array dimension.

SortArray

Returns array with sorted elements.

StringToUCharArray

Copies an entire DataFlex string to a UChar array.

StrJoinFromArray

Appends contents of elements of a String array to a single String.

StrSplitToArray

Splits the contents of a single String into the elements of a String array.

UCharArraytoString

Returns a DataFlex string which is a copy of the passed UChar array.