Visara Master Console Center Scripting Guide Manuel d'utilisateur Page 80

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 262
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 79
Chapter 5 Script Commands
Scripting Guide 80
ASORT
Syntax:
ASORT( NormArray, %Direction)
Description:
Sort a normal array.
Action:
The data elements in the specified array are sorted, in ascending or
descending order, as specified by the Direction parameter.
Parameters:
NormArray. Normal array variable. The normal array to sort. Can
be a string or integer array.
Direction. Integer expression. Indicates the order in which to sort
the data—ascending or descending. Valid constants are ASC for
ascending and DESC for descending.
Returns:
N/A.
Notes:
The array is sorted “in-place”. The order of the original array is lost.
Example:
ASSOCKEYS( $AssocArray, $Keys)
ASORT( $Keys, ASC)
// now we can traverse the associative array in a
// consistent order
See Also:
ASSOCKEYS
Vue de la page 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 261 262

Commentaires sur ces manuels

Pas de commentaire