Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>ains()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
AINS()


Syntax:     AINS(<array>, <expN>)

Purpose:    To insert an undefined element into an array.

Arguments:  <array> is the array to insert a new element into.

            <expN> is the position to insert the new element.

Returns:    There is no return value.

Usage:      The newly inserted position remains undefined until a new
            value is assigned to it.  After the insertion, the last
            array element is discarded and all elements after the new
            element are shifted down one position.

Library:    EXTEND.LIB


----------------------------------- Example --------------------------------

   DECLARE array[3]
   array[1] = 1
   array[2] = 2
   array[3] = 3
   ? array[2]                 && Result: 2
   AINS(array, 2)
   ? array[3]                 && Result: 2


See Also: ACOPY() ADEL() AFILL() ASCAN() LEN()

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