HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
3- 6
In general, identifiers should not have the same name and spelling
as keywords. This can be very confusing, especially when
attempting to debug a program.
Regardless of how an identifier is entered, HP Business BASIC/XL prints
it with the first character upshifted and the others downshifted. For
example, "NAMes" and "NAMES" become "Names", and both refer to the same
entity.
Examples
Table 3-4. Legal Identifiers
--------------------------------------------------------------------------------------------
| | |
| Legal Identifier | Printed |
| | |
--------------------------------------------------------------------------------------------
| | |
| X | X |
| | |
--------------------------------------------------------------------------------------------
| | |
| grand_total | Grand_total |
| | |
--------------------------------------------------------------------------------------------
| | |
| Sub_total_123 | Sub_total_123 |
| | |
--------------------------------------------------------------------------------------------
| | |
| i | I |
| | |
--------------------------------------------------------------------------------------------
| | |
| A_ | A_ |
| | |
--------------------------------------------------------------------------------------------
| | |
| variablename | Variablename |
| | |
--------------------------------------------------------------------------------------------
| | |
| LEGAL_IDENTIFIER | Legal_identifier |
| | |
--------------------------------------------------------------------------------------------
Table 3-5. Illegal Identifier
--------------------------------------------------------------------------------------------
| | |
| Illegal Identifier | Reason It Is Illegal |
| | |
--------------------------------------------------------------------------------------------
| | |
| 1XYZ | First character is not a letter. |
| | |
--------------------------------------------------------------------------------------------
| | |
| #illegal | First character is not a letter. |
| | |
--------------------------------------------------------------------------------------------
| | |
| sub'total | Contains a character that is not a letter, digit or underscore. |
| | |
--------------------------------------------------------------------------------------------