arrayDestroy()

This procedure destroys array in memory.

ParameterTypeDescription
arrayPtrPOINTERMandatoryPointer to array

Procedure returns *ON if array was destroyed correctly. It returnf *OFF in case of destroying process failed.

Examples:

xxText = 'Example of text';
xxPtr = stringToArray(%ADDR(xxText): %LEN(%TRIMR(xxText)));
//This will create array with following elements: ['Example','of','text']

arrayDestroy(xxPtr);