Hold; Include; Integer; Ip_Client_Close - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Reserved Identifiers
Keywords & Run-Time Library Functions (Cont.)

HOLD

IF

INCLUDE

INTEGER

IP_CLIENT_CLOSE

134
This keyword defines a section in a BUTTON event handler for processing HOLD
events.
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
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.
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.
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.
NetLinx Programming Language Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents