EasyManua.ls Logo

Crestron SIMPL+ - Len Function

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
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

Table of Contents