Show/Hide Toolbars

XSharp

Unrecognized escape sequence

 

An unexpected character follows a backslash (\) in a string. The compiler expects one of the valid escape characters. For more information, see Character Escapes.

 

The following sample generates XS1009.

 

 

// XS1009-a.prg  
 

 

A common cause of this error is using the backslash character in a file name, as the following example shows.

 

 

 
 

 

To resolve this error, use "\\" or the @-quoted string literal, as the following example shows.

 

 

// XS1009-b.prg