NetLinx UniCode Functions
173
NetLinx Programming Language Reference Guide
NetLinx UniCode Functions
Overview
NetLinx UniCode Functions allow programmers to embed Unicode String literals in their NetLinx
programs, manipulate them using run-time functions and send them to touch panels and other user
interfaces.
NetLinx UniCode Functions
_WC
This keyword is a macro for Unicode strings. All Unicode string literals must be
contained in single quotes and in the _WC macro.
WIDECHAR wcData[] = WC('Unicode String')
CH_TO_WC
This keyword converts a CHAR array to a WIDECHAR array.
WIDECHAR[] CH_TO_WC(CHAR STRING[])
Parameters
:
STRING - a character string to be converted.
Result
:
Result is a WIDECHAR array containing the values from the CHAR array.
WIDECHAR wcData[] = CH_TO_WC('ASCII')
WC_COMPARE_STRING
This keyword compares two Unicode strings.
If either string contains a '?' character, the matching character in the other
string is not compared.
The '?' is equivalent to a wildcard. For example:
INTEGER WC_COMPARE_STRING(WIDECHAR STR1[], WIDECHAR
STR2[])
Parameters
:
• STR1 - the first widechar string to be compared.
• STR2 - the first widechar string to be compared.
Result
:
The returned result can only be True (1) or False (0).
• 0 = the strings don't match
• 1 = the strings are the same
See COMPARE_STRING for a code example.
WC_CONCAT_STRING
This keyword concatenates two WIDECHAR arrays.
WIDECHAR[] WD_CONCAT_STRING(WIDECHAR STR1[], WIDECHAR
STR2[])
Parameters
:
• STR1 - the first widechar string to be concatenated.
• STR2 - the first widechar string to be concatenated.
Result
:
A widechar string which concatenates STR1 and STR2
wcMyString = WC_CONCAT_STRING(wcString1,wcString2)
Summary of Contents for NETLINX PROGRAMMING LANGUAGE
Page 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Page 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Page 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Page 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Page 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Page 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Page 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Page 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Page 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Page 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...