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:
00610557
Views:
18
>FOR EACH CRFormulaField IN CRFormulaFields
> IF CRFormulaField.Name = "SDate" then
> CRFormulaField.Text = "Date(2000,01,01)"
> ELSE
> IF CRFormulaField.Name = "EDate" then
> CRFormulaField.Text = "Date(2000,01,01)"
> ENDIF
> ENDIF
>NEXT
>

Deddy,

You should be using the FormulaFieldName property instead of Name (i.e. CRFormulaField.FormulaFieldName). The Name property would contain the extra characters you would see in the report designer itself (i.e. {@SDate}).

Try that out and see if that works for you.

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

Click here to load this message in the networking platform