changing format on a total line

egiblock

New Member
we have two columns on a report, Sales, and Cost of Sales.

When displayed on the report the word "TOTAL" is displayed to the right of the fields.

is there a way to move the "TOTAL" word to the other side of the totals?

the reason being that the word as is, gets cut off when printing.

thanks

** i don't know if this helps, but here is the code he two columns i am working with.


Code:
       t-sales      format "-z,zzz,zz9" label "Sales"        (total by wkords.to-ship)
       t-cost       format "-z,zzz,zz9" column-label "Cost of!Sales"        (total by wkords.to-ship)
 

mrobles

Member
Hi

In this case I have the acumulate in variables or use the accumulate function and use a place holder.
Example.

DEF VAR suma AS INT NO-UNDO.
FOR EACH customer NO-LOCK
BREAK BY id_state.
DISPLAY cust-num credit.
suma = suma + credit.
IF LAST-OF(id_state) THEN DO:
DOWN.
UNDERLINE credit.
DISPLAY 'TOTAL' @ cust-num
suma @ credit.
suma = 0.
END.
END.

MRobles
 
Top