Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying multiple variable contents in 1 formula

Status
Not open for further replies.

oanion

IS-IT--Management
Jun 18, 2004
55
Local Numbervar Ras;

Local Numbervar ras1;



If {TABLE1.field1} = "E" then

Ras := Count({TABLE1.field1})

else If {Table1.field1} = "C" then

ras1 := Count({Table1.field1})

How can I display both RAS and RAS 1 from the same formula in Crystal 11?
 
First, remove the "local" designation from your main formula since you want to reference these variables elsewhere in the report. Then you can use a display formula like the following in a section below your earlier formula:

whileprintingrecords;
Numbervar Ras;
Numbervar ras1;

Totext(Ras,0,"") + " "+Totext(ras1,0,"")

This would show the two values separated by a space.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top