String Formatting & Printing Functions - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
String Formatting & Printing Functions
®
214
SIMPL+
String Formatting & Printing Functions Overview
The printing functions are used to take INTEGER and STRING type arguments in a
SIMPL+ program, format them in a user specified way, and send the output to either
the COMPUTER port of the control system or to another STRING.
MakeString
Name:
MakeString
Syntax:
MakeString(STRING DESTINATION, <Static Specification
String> [, <arg1> ...]);
MakeString(0 | 1 | 2, <Static Specification String> [,
<arg1> ...]);
Description:
MAKESTRING is a variant of PRINT (Refer to
MAKESTRING goes to the DESTINATION string. It can print simple text strings or
complex formatted strings. The second form of MAKESTRING allows different
destinations to be selected:
0: Console Port, same as PRINT.
1: CPU (same functionality as SendPacketToCPU function)
2: Cresnet Network (same functionality as SendCresnetPacket function).
NOTE: In the second form, the first argument may not be a variable containing 0, 1,
2. It must be the written as 0, 1, 2. Crestron is discouraging the use of the second form
of MAKESTRING in favor of either the PRINT command or alternate methods for
activating devices that do not require knowledge of Cresnet packets, which are subject
to change.
Parameters:
DESTINATION is a string where the output goes to after it has been formatted and
processed. For a further description of formatting, refer to PRINT that begins on page
216.
Return Value:
None.
Crestron SIMPL+
page
216). The output of
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents