Show/Hide Toolbars

XSharp

There are a couple of different string types inside X#. For normal strings the notation can be different for different dialects:

 

Literal

VO, FoxPro & Harbour

Vulcan & Core

'<char>'

String literal

Char literal*

'<char>...<char>'

String literal

Not Supported

"<char>...<char>"

String literal

String literal

e"<char>...<char>"

Extended string literal*

Extended string literal*

i"<char>.. <char>{expression}"

Interpolated string literal

Interpolated string literal

ei"<char>.. <char>{expression}" or

ie"<char>.. <char>{expression}"

Extended interpolated string literal*

Extended interpolated string literal*

 

The <char> literals in the table that are marked with an asterisk (*) may contain a special escape code

 

Character

Description

Character that does NOT start with a backslash

Normal character

\\

Backslash

\"

Double quote

\'

Single quote

\0

0 character

\a

Alert

\b

Backspace

\f

Form feed

\n

Line feed

\r

New Line

\t

Tab

\v

Vertical tab

\x HEXDIGIT(1-4)

Hex number of character. 1-4 hex digits

\u HEXGDIGIT (4 or 8)

Unicode number of character. 4 or 8 hex digits