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

4- 122
A: 1 2 B: 1 2 3
3 4 4 5 6
5 6
7 8 9
1 2 3
Arrays can also be explicitly redimensioned by the MAT READ and MAT INPUT
statements, or implicitly redimensioned by the MAT = statement.
REM
The REM statement specifies a remark. It is the first keyword on a
comment line. HP Business BASIC/XL ignores the rest of that line.
Syntax
REM
Examples
10 REM The rest of this line is ignored
RENAME
The RENAME statement changes the name of a file.
Syntax
RENAME
fname1
TO
fname2
[,
lock_word
]
Parameters
fname1
Old
fname
of file.
fname2
New
fname
of file.
lock_word
String expression that evaluates to the lockword for
fname1
. It is required if
fname1
has a lockword. The
lockword is not added to
fname2
.
Examples
10 CREATE "File1/secret", FILESIZE=1320 !File1 has a lockword "secret"
20 CREATE "File2", FILESIZE=2950 !File2 has no lockword
30 RENAME "File1" TO "First", "secret" !Lockword must be specified
40 RENAME "First" TO "Number1", !No lockword required
50 RENAME "File2" TO "Number2" !No lockword required
99 END
REPEAT
The REPEAT and UNTIL statements define a loop that repeats until the
boolean expression in the UNTIL statement is TRUE (nonzero).
Syntax
REPEAT [
stmt
] . . . UNTIL
boolean_expr
Parameters
stmt
Program line that is executed until
boolean_expr
evaluates to TRUE. These statements constitute the loop
body. The loop body is always executed once prior to
the evaluation of
boolean_expr
.
boolean_expr
Considered FALSE if it evaluates to zero; TRUE
otherwise.