Upper - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Upper

Name:
Upper
Syntax:
STRING Upper(STRING SOURCE);
Description:
Takes a source string and converts characters with the values a-z (lowercase) to A-Z
(uppercase).
Parameters:
SOURCE is a string to be converted to uppercase. SOURCE is not modified, unless
it is also used as the return value, e.g., S$=UPPER(S$);
Return Value:
A STRING containing the uppercase version of SOURCE. Characters that do not fall
into the range a-z are not modified and will stay as specified.
Example:
STRING_INPUT IN$[100];
STRING UPPER$[100];
CHANGE IN$
{
UPPER$ = UPPER(IN$);
PRINT("Uppercase version of %s is %s\n",IN$, UPPER$);
}
In this example, if IN$ contains "Hello There 123!" then UPPER$ contains "HELLO
THERE 123!".
Version:
SIMPL+ Version 1.00
Software
®
SIMPL+
233

Advertisement

Table of Contents
loading

Table of Contents