Contents - Index


 

Use CalcTotal to total the numbers within a specified zone for a specified group of lines or within the active grid selection.  The calculated result is displayed in the message line.

 

CalcTotal may also be entered as CalcTot[al] or Tot[al].

 

The group of lines can be specified by pre-selecting the lines (see Selection) or by using the FCT operand.  If neither a pre-selection or FCT operand is provided, the group of lines consists solely of the current line.

 

Optional Operands

 

ZONE specifies the zone in which the numbers exist.

 

 Default: current session zone.

 

FCT specifies the number of lines to process.  If FCT is specified as an asterisk (*), all lines starting at the cursor row and proceeding through the end of the session are processed.

 

 Default: 1.

 

Alternatively, CalcTotal will total the numbers within the active grid selection.

 

CalcTotal may be invoked without operands by pressing Alt-= (equal sign).

 

Return Codes

 

OK Successful.

NU Non-numeric data.

 

Examples

 

Total the numbers within the current zone for the active selection:

 

   => tot

 

Total the numbers within the active grid selection:

 

   => tot

 

Total the numbers existing between columns 10 and 15 on the 6 lines starting at the current line:

 

   => tot 10-15,6