Viva Clipper !

SP_ASORTMULT

Advertisements
ASORTMULT()

  Short:
  ------
  ASORTMULT() Sort multiple arrays on order of single array

  Returns:
  --------
  Nil

  Syntax:
  -------
  ASORTMULT(aArray1,aArray2,[...aArray15])

  Description:
  ------------
  Sorts [aArray2] through [aArray15] based on the sort
  results of [aArray1]. All arrays must be of the same length!
  [aArray3]- [aArray15] are optional.

  Examples:
  ---------
   // sort the fieldname array, as well as the arrays  containing
   // field types, lengths, and decimals

   ASORTMULT(aFieldNames,aFieldTypes,aFieldLens,aFieldDeci)

  Notes:
  -------
  ASORTMULTR() does the same, except sorts in reverse
  order

  Source:
  -------
  S_AMSORT.PRG

 

Advertisements

Advertisements