$UPDARRAY (update array data)
$UPDARRAY updates a value in an array element of an array variable. The array element is specified with an array number.
Syntax
$UPDARRAY(array-name,array-number,character-string)
Values
-
array-name
Specifies the name of an array in which data is to be updated.
-
array-number
Specifies the array number of the array element to be updated, either as a constant or a variable. A constant must be enclosed in single quotation marks (''). Specified values can range from 1 to 2,147,483,647.
-
character-string
Specifies the value to be updated, either as a constant or a variable. A constant must be enclosed in single quotation marks ('').
Status
The following table lists and describes the possible statuses:
Status |
Description |
---|---|
NORMAL |
Normal end |
NODATA |
No information exists for the specified array number. |
ERROR |
— |
Script execution interrupted |
An invalid argument was specified, or an error other than the above occurred. |
Example
See the example for $SETARRAY (set value to array).