HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

3- 17
{
nonquote
}
"{"" }..."
Special character string literal:
'
integer
Parameters
nonquote
Nonquoted string literal. Any character except a double
quote(").
integer
Special character string literal. Must be in the range
[0,255]. Represents an ASCII character.
Examples
The quoted string literals in the left column below are printed as shown
in the right column. The fourth example is the null string.
Table 3-17. Examples of String Literals
---------------------------------------------------------------------------------------------
| | |
| String Literal | Printed |
| | |
---------------------------------------------------------------------------------------------
| | |
| "cat" | cat |
| | |
---------------------------------------------------------------------------------------------
| | |
| "black cat" | black cat |
| | |
---------------------------------------------------------------------------------------------
| | |
| "12345" | 12345 |
| | |
---------------------------------------------------------------------------------------------
| | |
| "" | Nothing |
| | |
---------------------------------------------------------------------------------------------
| | |
| """" | " |
| | |
---------------------------------------------------------------------------------------------
| | |
| "say 'hi'" | say 'hi' |
| | |
---------------------------------------------------------------------------------------------
| | |
| "say ""hi""" | say "hi" |
| | |
---------------------------------------------------------------------------------------------
The following are special character string literals representing ASCII
characters
---------------------------------------------------------------------------------------------
||| |
| Character | What It | Note |
||Represents | |
||| |
---------------------------------------------------------------------------------------------
||| |
| '0 | NUL | null |