Visara Master Console Center Scripting Guide Manuale Utente Pagina 144

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 262
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 261 262

Commenti su questo manuale

Nessun commento