Visara Master Console Center Scripting Guide Manual de usuario Pagina 144

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 262
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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
Vista de pagina 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 261 262

Comentarios a estos manuales

Sin comentarios