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

  • 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 143
Chapter 5 Script Commands
Scripting Guide 144
LEN
Syntax:
LEN( $StringExpr) ==> %Count
Description:
Returns the number of characters in a string expression.
Action:
Counts the number of characters in an evaluated character expression.
Parameters:
$StringExpr. String expression. The character string to count.
Returns:
Numeric value. The length of the character string.
Notes:
1. If the string is empty “”, zero is returned.
2. Each byte in the string counts as one.
Example:
$String := “Hello”
%Len := LEN( $String)
// %Len will contain the value 5.
%Len := LEN( $Text)
IF LEN( $Name) == 0
//some commands
ENDIF
%Count := LEN( “****” + $Msg[ 1] + $Msg[ 2] + “****”)
See Also:
ALEN
Vue de la page 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 261 262

Commentaires sur ces manuels

Pas de commentaire