EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1201: Invalid \x Sequence

Crestron SIMPL+
374 pages
Print Icon
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...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 303
Compiler Error 1201
expression error: Invalid \\x sequence
Invalid \\x sequence: '<expression>'
A hexadecimal sequence within a literal string contained an invalid format.
Characters represented by a hexadecimal number must follow the format: \xXX,
where ‘\x’ signifies that a hexadecimal sequence is to follow and XX is the 2 digit
hexadecimal value.
The following are examples of this error:
Function myFunc()
{
STRING str[100];
MakeString( str, “Sending commands \xFF” ); // ok
MakeString( str, “Sending commands \x41\x1A\xFF” ); // ok
MakeString( str, “Sending cmd \x4” ); // error – 2 digits
required
MakeString( str, “Sending cmd \x” ); // error – hex code
expected
MakeString( str, “Sending cmd \xZZ” ); // error – invalid
hex code
MakeString( str, “Sending cmd \xZZ” ); // error – invalid
hex code
}

Table of Contents