Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

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: AINS() ASIZE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson