rptName=[f:\revenue\ridershp\report\rid_orig_totals_pluses.frx]
nColumns=4
DIMENSION arColumn(nColumns), arFormat(nColumns)
arColumn(1)=33854.167
arColumn(2)=42187.500
arColumn(3)=64062.500
arColumn(4)=71354.167
arFormat(1)=[999,999,999]
arFormat(2)=[9999.9]
arFormat(3)=[999,999,999]
arFormat(4)=[9999.9]
cPart1=[IIF(]
cPart2=[>0,'+','')+ALLT(TRAN(]
cPart3=[,"]
cPart4=["))]
*==========================================
USE (rptName) IN 0 EXCLUSIVE ALIAS Report
SELECT Report
FOR i=1 TO nColumns
REPLACE Picture WITH "", ;
FillChar WITH "C", ;
Offset WITH 1, ;
Expr WITH cPart1+ALLTRIM(Expr)+ ;
cPart2+ALLTRIM(Expr)+ ;
cPart3+arFormat(i)+cPart4 ;
FOR ObjType=8 AND hPos=arColumn(i) AND ;
('9'$Picture OR '#'$Picture) AND !"TRAN"$UPPER(Expr)
&& With this, we replace the numeric expression with a character one,
&& blank out the numeric format, and set up right justification.
NEXT