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

5-41
Syntax
TYP(
fnum
)
Parameters
fnum
The file number that HP Business BASIC/XL uses to
identify the file. It is a numeric expression that
evaluates to a positive short integer.
Fnum
must
specify a BASIC DATA file. An optional # can precede
fnum
.
Examples
110 Type = TYP(2) !Type is type of next datum in file 2
UPC$ Function
The uppercase function, UPC$, converts a string with any lowercase
letters to a string that is entirely uppercase. An optional second
parameter can be used to specify the native language number.
Syntax
UPC$ (
str_expr
[,
nl_num_expr
] )
Parameters
str_expr
A string variable, a quoted string, the value returned
from a string function, or any expression using the
appropriate string operators to construct an expression.
nl_num_expr
A numeric expression that evaluates to a Native Language
ID. If
nl_num_expr
is set to -1, the underlying native
language number is used as the language specifier. If a
nonnegative value is used, that number is taken directly
as the language specifier. If the native language
option is not specified, then the option defaults to
zero.
Examples
10 A$ = UPC$("Joe") !A$ = "JOE"
USRID
The USRID function returns the User ID (logical device) number of the
job/session input device.
Syntax
USRID
Examples
10 SYSTEM "SHOWJOB" !Lists the system jobs and sessions on your terminal
20 PRINT USRID !The User ID and Logical device number of the session
21 !or job that is running this program is displayed.
VAL
The VAL function returns a number representing the numeric string at the
beginning of a string expression. It will ignore the rest of the string
expression.
Syntax
VAL(
S
$)