Crestron SIMPL+ Reference Manual page 78

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

Advertisement

Software
®
68
SIMPL+
The variable, Entry, is then defined to be an array of the datatype, PhoneBookEntry
consisting of 501 individual instances, namely Entry[0] to Entry[500].
To access a structure's field, the structure's declared variable name is used, followed
by a period (also known as the 'dot' or 'dot operator'), then followed by a structure
member variable name.
From the example above, accessing the Name field from the declared variable would
be written as follows:
OneEntry.Name
or
Entry[5].Name
Using this in a SIMPL+ statement might look as follows:
If ( OneEntry.Name = "David" )
Return;
If ( Entry[5].Name = "David" )
Return;
Passing structures as function arguments is as follows:
FUNCTION myFunction ( PhoneBookEntry argOneEntry,
PhoneBookEntry argEntry[] )
{
if ( argOneEntry.Name = "David" )
return;
if ( argEntry[5].Name = "David" )
return;
}
Version:
SIMPL+ Version 3.00.02
Control System
2-Series Only
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents