Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 225
Len
Name:
Len
Syntax:
INTEGER Len(STRING SOURCE);
Description:
Returns the length of the actual string, not the declared maximum length.
Parameters:
SOURCE is a string whose length is to be determined.
Return Value:
A value from 0 - 65535, which gives the number of characters in the string. An empty
string returns a length of 0.
string returns a length of 0.
Example:
STRING_INPUT IN$[100];
INTEGER Temp;
CHANGE IN$
{
Temp = LEN(IN$);
PRINT(“The Length of %s is %d\n”, IN$, Temp);
}
In this example, if IN$ is equal to “This is a test” then Temp will contain the integer
14.
14.
Version:
SIMPL+ Version 1.00