Reserved Identifiers
103
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
BREAK
The
BREAK
command terminates execution of the current
WHILE
,
LONG_WHILE
, or
FOR
loop and resumes program execution at the first instruc-
tion following that loop.
BREAK
also jumps to the end of a
SWITCH
statement.
WHILE (<condition>)
{
// statements
IF (<condition>)
{
BREAK // Go to statement: X = X + 1
}
}
// Execution continues here after BREAK or
// after normal completion of the WHILE loop.
X = X + 1
BUTTON_EVENT
This keyword defines a button event handler and can only be used in the
DEFINE_EVENT
section of the program. This type of handler processes
PUSH
,
RELEASE
, and
HOLD
events.
BUTTON_EVENT[DEVICE,CHANNEL] or
BUTTON_EVENT [(DEVCHAN[ ])]
{
PUSH:
{
// Push statements go here
}
RELEASE:
{
// Release statements go here
}
HOLD[TIME,[REPEAT]]:
{
// Hold statements go here
}
}
See the
Event Handlers
section on page 61.
BXOR (^)
This operator performs a bitwise
XOR
operation between two data items, which
can be constants or variables.
CALL
Use the
CALL
keyword and the name of the subroutine in single quotes to tell
NetLinx to execute a subroutine. For example, to execute the subroutine Lights
Off, type the following where you want the
CALL
to occur:
CALL 'Lights Off'
When NetLinx executes the
CALL
, program execution jumps to the first line
inside the braces of the
DEFINE_CALL
. The subroutine is executed only once,
and then NetLinx returns to the statement directly following the
CALL
statement.
CANCEL_ALL_WAIT
This keyword cancels all
WAIT
s (named or unnamed) in the
WAIT
list.
CANCEL_ALL_WAIT_
UNTIL
This keyword cancels all (named or unnamed)
WAIT_UNTIL
and
TIMED_WAIT_UNTIL
commands.
CANCEL_WAIT
This keyword cancels a specified wait. Only named waits can be canceled.
CANCEL_WAIT '<wait name>'
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...