Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a formula at runtime in Crystal Reports
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00608828
Message ID:
00609228
Views:
17
>Hello all,
>
>Anyone know how to pass a formula at runtime using Crystal Reports 8.5 ?
>Examples provided with CR are written in VB and didn't work in VFP.
>
>TIA,
>
>Deddy

Deddy,

If you know the name of the formula field you wish to populate at runtime, then you will need to loop through the report object's FormulaFields collection and compare the FormulaFieldName to the field name in question. Once you find it, then you just set the Text property of the formula object to be whatever formula string you want (e.g. oFormulaField.Text = "CurrentDate").

HTH.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform