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>asort()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ASORT()


Syntax:     ASORT(<array> [,<expN1> [,<expN2>]])

Purpose:    To sort the contents of an array in ascending order.

Arguments:  <array> is the array to sort.

            <expN1> is the first element of the sort.  If omitted,
            the sort begins with position 1.

            <expN2> is the number of elements to sort.  If you omit
            this argument, the sort operation proceeds from the
            beginning element position to the end of the array.

Returns:    There is no return value.

Usage:      All elements in the range of the array being sorted must be
            the same data type.  Note that ASORT() is not affected by
            EXACT ON.

Library:    EXTEND.LIB


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

   DECLARE testarray[3]
   testarray[1] = "AA"
   testarray[2] = "CC"
   testarray[3] = "BB"
   *
   ASORT(testarray)
   *
   ? testarray[1]                && Result: "AA"
   ? testarray[2]                && Result: "BB"
   ? testarray[3]                && Result: "CC"


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

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