C5_ATAIL

 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()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.