EasyManua.ls Logo

AMX NETLINX PROGRAMMING LANGUAGE - Find_String; First_Local_Port; Float; For

AMX NETLINX PROGRAMMING LANGUAGE
246 pages
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...
Reserved Identifiers
126
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
FIND_STRING This function searches through a string for a specified sequence of characters.
INTEGER FIND_STRING (CHAR STRING[ ], CHAR Seq[ ], INTEGER
Start)INTEGER FIND_STRING (WIDECHAR STRING[ ], WIDECHAR
Seq[ ], INTEGER Start)
Parameters:
STRING: The string of character to search.
Seq: The sequence of characters to search for.
Start: The starting character position for the search.
Result:
A 16-bit unsigned integer representing the character location of Seq in STRING.
If the character string is found at the beginning of the string, this
function returns 1; any error condition returns 0.
POS = FIND_STRING(STRING, 'ABC', 1)
FIRST_LOCAL_PORT This keyword contains the lowest number that may be assigned as a local port
number. See the IP Communication section on page 189 for more information.
FLOAT This keyword defines an intrinsic data type representing a 32-bit signed
floating-point value.
FOR This keyword defines a FOR loop. The looping structure allows you to define ini-
tialization statements, statements to execute after each pass through the loop
and a condition to test after each pass. If the condition evaluates to true,
another pass is made; otherwise the loop is terminated.
FOR (<initial>; <condition>; <after pass>)
{
(* for loop statements *)
}
See the FOR loops section on page 18 for more information.

Table of Contents

Related product manuals