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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to pass values to variables in formulas

Status
Not open for further replies.

icthus

Programmer
Jan 4, 2001
8
PT
hi!

i want to pass values to variables defined in formulas.Is that possible?

i have something like this:

StringVar x;
StringVar y;

"Text " + x + " and more text " + y

i'm using crystal activex control in vb6 and i want to pass the values to the variables, without overwriting the formula.


thanks.

regards,
Lena

 
There may be a way but I haven't seen it.

It would be simpler to pass the values to empty character formula fields in CR, and then concatenate the formula fields with the text in your final formula. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Icthus: Why wouldn't ou use parameters to pass in these values? If you set up your formula as:

Stringvar x:= {?param1};
Stringvar y:= {?param2};
"Text"+x+"more text"+y

should work David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
well... i'm just using the reports. They have already been made by another person.
Some formulas have "lots" of text and code, and i supposed that i could pass values only to variables.

thanks a lot

Lena

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top