ReverseArray (open)

Reverse the order of an array

Syntax

// Core function, no LOADLIB necessary

VARIANT FUNCTION ReverseArray(VARIANT input)

Parameters

VARIANT input

The array to reverse

Return value

VARIANT

The reversed array

Examples

// Given a simple INTEGER ARRAY like so:
INTEGER ARRAY test := [ 5, 3, 9, 11, 0, 4 ];
test := ReverseArray(test);
// The result would be:
INTEGER ARRAY [ 4, 0, 11, 9, 3, 5 ];