EasyManua.ls Logo

Crestron SIMPL+ - Page 78

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...
Software Crestron SIMPL+
®
68 z SIMPL+
®
Language Reference Guide - DOC. 5797G
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

Table of Contents

Other manuals for Crestron SIMPL+

Related product manuals