#BACKSLASH_ON
|
Syntax: |
#BACKSLASH_ON |
|
Meaning: |
Under Java the backslash \ has a special
meaning within character strings. For example, a line feed is created by \n. In
Ebus-J this mechanism is by default switched off. This corresponds to #BACKSLASH_OFF. The string "\n"
is generated as "\\n". "\\" defines the character
"\" under Java. This means that with #BACKSLASH_OFF "\n"
constitutes a string consisting of the two characters \ and n. With
#BACKSLASH_ON "\n" is interpreted as line feed. #BACKSLASH_OFF and #BACKSLASH_ON take effect
only within macros. At the beginning of a macro #BACKSLASH_OFF is always set
automatically. |
|
Sample: |
/* If the character
" is to occur within a
character string, then with /* #BACKSLASH_OFF this is only possible with the help of CHR$(34). H$ = "Hello " + CHR$(34) + "World" + CHR$(34) /* H$ contains: Hello "World" /* With #BACKSLASH_ON this can be achieved more easily: #BACKSLASH_ON H$ = "Hello \"World\"" #BACKSLASH_OFF |
|
See also: |
|