EasyManuals Logo

AMX NETLINX PROGRAMMING LANGUAGE User Manual

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
Page #194 background imageLoading...
Page #194 background image
NetLinx UniCode Functions
178
NetLinx Programming Language Reference Guide
NetLinx UniCode Functions (Cont.)
WC_FILE_WRITE This function writes a block of widechar data to the specified file.
SLONG WC_FILE_WRITE (LONG hFile, WIDECHAR Buffer[ ], LONG
BufLen)
Parameters:
• hFile: Handle to the file returned by WC_FILE_OPEN.
• Buffer: Buffer containing the data to write.
• BufLen: Number of characters to write.
Result:
• >0: The number of bytes actually written
• -1: Invalid file handle
• -5: Disk I/O error
• -6: Invalid parameter (buffer length must be greater than zero)
• -11: Disk full. The data will overwrite or append to the current contents of the
file depending on the current position of the file pointer.
WIDECHAR wcBuffer[1024]Result = WC_FILE_WRITE (hFile,
wcBuffer,1024)
WC_FILE_WRITE_LINE This function writes a line of widechar data to the specified file.
SLONG FILE_WRITE_LINE (LONG hFile, WIDECHAR Line[ ], LONG
LineLen)
Parameters:
• hFile: Handle to the file returned by WC_FILE_OPEN.
• Line: Buffer containing the line of data to write.
• LineLen: Number of characters to write.
Result:
• >0: The number of bytes actually written
• -1: Invalid file handle
• -5: Disk I/O error
• -6: Invalid parameter (LineLen must be greater than zero)
• -11: Disk full. A <CR><LF> character pair is automatically appended to the
end of the line.
WIDECHAR wcLine[80]Result = FILE_WRITE_LINE (hFile,
wcLine, 80)
WC_FIND_STRING This function searches through a string for a specified sequence of characters.
INTEGER WC_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 = WC_FIND_STRING(STRING, _WC('ABC'), 1)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AMX NETLINX PROGRAMMING LANGUAGE and is the answer not in the manual?

AMX NETLINX PROGRAMMING LANGUAGE Specifications

General IconGeneral
BrandAMX
ModelNETLINX PROGRAMMING LANGUAGE
CategorySoftware
LanguageEnglish

Related product manuals