4 Functions

The OLDCV Function

The OLDCV function returns the value of the control variable as it was evaluated in the last break condition. (The control variable is the parameter "control" in the BREAK WHEN statement.) Its primary purpose is to get the correct value of the control variable in trailer routines. The value changes when a break condition occurs. The old value of the control variable is changed to the new break value after all TRAILERS have been processed and before any HEADERS are called.

OLDCV [$] (level)

The parameters are:

$
The $ indicates that the control variable is a string. Without a $, it is assumed the control variable is numeric.
level
A numeric expression that evaluates to an integer from 1 to 9. It associates the OLDCV function with the BREAK WHEN statement of the same level containing the control variable.
An example of this function follows.


240  TRAILER 3 WITH 2 LINES USING P_trail3;OLDCV(3),TOTAL(3,1)

Eloquence Report Manual - 19 DEC 2002