Visara Master Console Center Scripting Guide Manual do Utilizador Página 80

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 262
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 261 262

Comentários a estes Manuais

Sem comentários