Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>atail()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ATAIL()
 Return the highest numbered element of an array
------------------------------------------------------------------------------
 Syntax

     ATAIL(<aArray>) --> Element

 Arguments

     <aArray> is the array.

 Returns

     ATAIL() returns either a value or a reference to an array or object.
     The array is not changed.

 Description

     ATAIL() is an array function that returns the highest numbered element
     of an array.  It can be used in applications as shorthand for
     <aArray>[LEN(<aArray>)] when you need to obtain the last element of an
     array.

 Examples

     .  The following example creates a literal array and returns that
        last element of the array:

        aArray := {"a", "b", "c", "d"}
        ? ATAIL(aArray)                     // Result: d

 Files   Library is CLIPPER.LIB.


See Also: LEN()

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