Reserved Identifiers
134
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
HOLD
This keyword defines a section in a
BUTTON
event handler for processing
HOLD
events.
IF
This keyword defines an
IF
statement; the
IF
statement provides conditional
branching of program execution.
IF (<expression>)
{
// statements
}
ELSE IF (<expression>)
{
// statements
}
ELSE
{
// statements
}
The
ELSE IF
and
ELSE
statements are optional. The braces delimiting the
statements, associated with each condition, are required only if there is more
than one statement. Refer to
ELSE
for more information. For example, the fol-
lowing syntax is correct:
IF (X > 0)
X = X - 1
INCLUDE
This keyword allows you to include programming instructions from an external
file and have those instructions inserted at any point in the program.
INCLUDE '<filename>'
The parameter filename can be any valid (long) filename. If the file extension
is omitted, "AXI" is assumed. An
INCLUDE
statement can appear anywhere in
a program.
Note
: There is no difference in functionality between the
INCLUDE
reserved
identifier and the
#INCLUDE
compiler directive.
INCLUDE
is supported for
backward-compatibility to Axcess.
INTEGER
This keyword defines an intrinsic data type representing a 16-bit unsigned inte-
ger. This is the default data type if a non-array variable is declared without a
data type specified.
IP_CLIENT_CLOSE
This function closes a port opened with
IP_CLIENT_OPEN
.
IP_CLIENT_CLOSE (INTEGER LocalPort)
Parameters:
•
LocalPort
: A non-zero integer value representing the local port on the
client machine to close.
Result: This function always returns 0. Errors are returned via the
DATA_EVENT ONERROR
method. The following error may be returned:
9: Already closed
See the
IP Communication
section on page 189 or more information.
Summary of Contents for NETLINX PROGRAMMING LANGUAGE
Page 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Page 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Page 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Page 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Page 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Page 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Page 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Page 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Page 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Page 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...