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

5-25
OLDCV
The OLDCV function is a Report Writer function that returns the value of
a BREAK WHEN control expression. The value stored is the value the last
time a break at the given level (or lower level) occurred. The BREAK
WHEN statement at this level must have a numeric control expression.
The OLDCV value is not available until report output is started.
References to this function before that time generate an error.
Syntax
OLDCV(
level
)
Parameters
level
A summary level number. This must be in the range [1,
9].
Examples
100 bwval= OLDCV(level2) !bwval receives the value of BREAK WHEN condition
OLDCV$
The OLDCV$ is a Report Writer function that returns the value of a BREAK
WHEN control expression. The value stored is the value the last time a
break at the given level (or lower level) occurred. The BREAK WHEN
statement at this level must have a string control expression.
The OLDCV$ value is not available until report output is started.
References to this function before that time generate an error.
Syntax
OLDCV$(
level
)
Parameters
level
A summary level number. This must be in the range [1,
9].
Examples
100 bwcont$ = OLDCV$(Level4) !bwcont$ receives the value of a BREAK
101 !WHEN string control expression.
PAGENUM
The PAGENUM function is a Report Writer function that returns the current
page number. The page number is set to 1 when a report is activated.
You can reset this value with the SET PAGENUM statement. If no report is
active, -1 is returned.
Syntax
PAGENUM
Example
100 Cpage = PAGENUM !Cpage receives the current page number
POS
The POS function returns the starting character of a string embedded in
another string. It will return 0 if the specified substring is not
found.
Syntax
POS(
S1
$,
S2
$)
Parameters
S1
$ A string expression indicating the string that the
substring is to occur in.