AADD()

Dynamically add an element to an array

Syntax

AADD(<aArray>[, <xValue>]) --> Value

Arguments

<aArray> The name of an array

<xValue> Element to add to array <aArray>

Returns

<Value> if specified <xValue>,<xValue> will return , otherwise this function returns a NIL value.

Description

This function dynamically increases the length of the array named <aArray> by one element and stores the value of <xValue> to that newly created element.

<xValue> may be an array reference pointer, which in turn may be stored to an array's subscript position.
Examples
      LOCAL aArray:={}
      AADD(aArray,10)
      FOR x:=1 to 10
          AADD(aArray,x)
      NEXT
Status

Ready

Files

Library is vm

See Also