[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson