HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
3- 7
Spaces
One of the following must separate a keyword and an identifier:
* Space.
* Comma.
* Parenthesis.
* Operator.
With few exceptions, spaces can appear anywhere in a program. Table 3-6
lists the places where spaces cannot appear and gives examples.
Table 3-6. Places Where Spaces Are Not Allowed
---------------------------------------------------------------------------------------------
| |||
| Space Is Not Allowed | Correct Example | Incorrect Example |
| |||
---------------------------------------------------------------------------------------------
| |||
| Within a line number. | 1020 | 10 20 |
| |||
---------------------------------------------------------------------------------------------
| |||
| Within a keyword. | PRINT | PR INT |
| |||
---------------------------------------------------------------------------------------------
| |||
| Within an identifier. | Grandtotal | Grand total |
| |||
---------------------------------------------------------------------------------------------
| |||
| Within a numeric literal. | 10000 | 10 000 |
| |||
---------------------------------------------------------------------------------------------
| |||
| Within a multicharacter relational operator | <> | < > |
| symbol. | | |
| |||
---------------------------------------------------------------------------------------------
| |||
| Between the identifier and $ in a string | Astring$ | Astring $ |
| variable name. | | |
| |||
---------------------------------------------------------------------------------------------
| |||
| Between the FN and the identifier in a | FNAdd | FN Add |
| function name. | | |
| |||
---------------------------------------------------------------------------------------------
When a keyword has an alternate spelling that contains an embedded
space, the two parts can be separated by more than one space. The key-
words in the left column below can also be initially spelled as shown
in the right column. The space in the second column can be replaced
with more than one space. HP Business BASIC/XL prints these keywords
as shown in the left column.