Visara Master Console Center Scripting Guide Instrukcja Użytkownika Strona 144

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 262
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 261 262

Komentarze do niniejszej Instrukcji

Brak uwag