ARRAY_OPT

This command clears all values in the given MySArr array or MyNArr array.

Syntax

ARRAY_OPT option_number, array_name

Valid entries for the option_number are:

option

explanation

1

Clears a string array (MySArr array)

2

Clears a number array (MyNArr array)

Return value

This command returns a 1 if the array was cleared. It returns a 0 if the array has no items or was not cleared.

Example

The following example adds value to a string array and then clears it:

MySArr "names", 1="fred": MySArr "names", 2="joe": MySArr "names", 3="sue"

ARRAY_OPT 1,"names"