Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
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.
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.
Version:
SIMPL+ Version 1.00
Software
®
SIMPL+
225
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?