ArAppend

Format: ArAppend( array, element [ , element2 ... ] )

Purpose: Appends a new data element to the end of an array or object. The array parameter specifies the array or object to which element will be appended. You can append multiple data elements with a single call to this function simply by separating them by commas as shown above.

Return Values: The function returns the array or object denoted by array.

Example:

input:
<let a=array(0);              // Declare an empty array
 ArAppend(a,5);               // Append data element
 ArAppend(a,null);            // Append data element
 ArAppend(a,"hello","world"); // Append 2 elements
 ? "Array a now contains: "; ? a;
>
resulting output:
Array a now contains: ([0]=5, [1]=null, [2]="hello", [3]="world")

See Also: array(), ArConcat(), ArSearch().


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2013 H.E.I. All Rights Reserved.