HP 3000 Manuals

INPUT Statement [ HP Business BASIC/XL Migration Guide ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Migration Guide

INPUT Statement 

The INPUT statement is automatically translated as indicated below:

In BASIC/V, a comma separates the prompt and the variable of an INPUT
statement.  HP Business BASIC/XL uses a semicolon instead.  The migration
aid automatically replaces the comma with a semicolon.

LET Statement 

LET statements are automatically translated as indicated below:

          Table 13-5.  LET Statements 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                   BASIC/V                   |            HP Business BASIC/XL             |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| LET (var1)=(var2)=(expr1)                   | LET (var1),(var2)=(expr1)                   |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| LET (var1)=(expr1)                          | LET (var1)=(expr1)                          |
|                                             | ,(var2)=(expr2) ;(var2)=(expr2)             |
|                                             |                                             |
---------------------------------------------------------------------------------------------

You can combine the two types of LET statements shown above:

     10 LET A=B=C=0,F$=T1$="hello"

Commas separate variables when you assign expressions to more than one
variable in HP Business BASIC/XL.

Semicolons separate multiple assignments made in a single statement.



MPE/iX 5.0 Documentation