HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
5- 12
Table 5-3. Numbers Representing Input Data Types
--------------------------------------------------------------------------------------------
| | |
| DATATYP | Type of Next Item in |
| Result | DATA Statement |
| | |
--------------------------------------------------------------------------------------------
| | |
| 1 | DECIMAL |
| | |
--------------------------------------------------------------------------------------------
| | |
| 2 | Entire string |
| | |
--------------------------------------------------------------------------------------------
| | |
| 4 | End-of-record (EOR) mark |
| | |
--------------------------------------------------------------------------------------------
| | |
| 5 | SHORT INTEGER |
| | |
--------------------------------------------------------------------------------------------
| | |
| 11 | INTEGER |
| | |
--------------------------------------------------------------------------------------------
| | |
| 13 | REAL |
| | |
--------------------------------------------------------------------------------------------
Syntax
DATATYP
Examples
10 READ A,B$
20 PRINT DATATYP
30 DATA 1.0,"hello",3
Line 20 above will print 5. Since the first two items have been read,
the value 3 is the next item in the DATA statement.
DATE$
If the system date has been set, the DATE$ function returns an
eight-character string that contains the current system date.
If the system date has not been set, the DATE$ function returns the null
string.
Syntax
DATE$ [(
num_expr
)]
Parameters
num_expr
Determines date format as shown in Table 5-4.
Table 5-4. Effect of DATE$ Function Parameter
---------------------------------------------------------------------------------------------
| | |
|
num_expr
| Date format |
| | |
---------------------------------------------------------------------------------------------
| | |
| Not specified | The default specified by HP Business BASIC/XL Configuration Utility |
| | (see appendix C). If HP Business BASIC/XL Configuration Utility has |
| | not set default, it is U. S. format. This is compatible with the |
| | HP250. |
| | |
---------------------------------------------------------------------------------------------
| | |