EasyManuals Logo

AMX NetLinx Studio User Manual

AMX NetLinx Studio
230 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 #111 background imageLoading...
Page #111 background image
Programming
99
NetLinx Studio - Instruction Manual
Including the Unicode Library
The Unicode Library is implemented in a NetLinx Include file, UnicodeLib.axi, that must be included in your program
in order to access the Unicode functions.
The Unicode Library is in an Include file located in the C:\Program Files\Common Files\AMXShare\AXIs directory.
Because this location is the default Include search path, you do not need to specify the directory in the include statement.
To include the Unicode Library to your program add these lines to your program:
(***********************************************************)
(* INCLUDE FILES GO BELOW *)
(***********************************************************)
#INCLUDE 'UnicodeLib.axi'
Unicode Characters
To insert unicode characters into the active Source Code file, at the cursor's position:
1. Select Unicode Edit from the Edit menu or the Editor window Context Menu to access the Enter Text dialog
(FIG. 175).
2. Type one or more characters in the upper text box to display the characters' unicode send command value in the
lower (read-only) window.
3. Press OK to insert the unicode send command value in the code, at the cursor's position.
Working with WIDECHAR Arrays and Unicode Strings
Working with WIDECHAR arrays and Unicode strings is very similar to working with CHAR arrays and ASCII strings.
Most operations that can be performed on a CHAR array can be performed on a WIDECHAR array.
For instance, to assign a string to a variable use this syntax:
wcMyString = _WC('My String')
The string functions defined for CHAR arrays have been defined for WIDECHAR array for use in Unicode programming.
These functions allow you to operate on strings similar to the way you would with CHAR array. For instance, to remove
the first 3 characters from a WIDECHAR array and return those characters as a WIDECHAR array, use
WC_GET_BUFFER_STRING:
wcRemoved = WC_GET_BUFFER_STRING(wcMyString,3)
You will find that most other function work exactly as their CHAR counterpart do except they work on and return
WIDECHAR arrays.
FIG. 175 Enter Text dialog (Unicode text)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AMX NetLinx Studio and is the answer not in the manual?

AMX NetLinx Studio Specifications

General IconGeneral
BrandAMX
ModelNetLinx Studio
CategorySoftware
LanguageEnglish

Related product manuals