Including The Unicode Library; Defining A Unicode String Literal - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

2. Select the NetLinx Compiler tab (FIG. 2).
FIG. 2
NetLinx Compiler tab of the Preferences dialog
3. Under Options, check the Enable _WC Preprocessor checkbox.
4. Close the Preferences dialog.

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 located 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 'UnicodeLib.axi'

Defining a Unicode String Literal

To enter Unicode characters into your program, enclose the characters in single quotes, like you would
any other string, and wrap the string literal in the Unicode macro _WC. Here is an example:
_WC('Your string goes here')
NetLinx Programming Language Reference Guide
INCLUDE FILES GO BELOW
NetLinx UniCode Functions
*)
183

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents