Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Grouping
Message
From
08/11/2004 10:24:30
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00959120
Message ID:
00959158
Views:
11
>Set your data group to: EVALUATE(SomeVariable)

Hi Cathy,

Here is what I placed in the program before calling the report.
PUBLIC gcFieldGrp
gcFieldGrp = IIF(gnLevel1 == 1, "Proj_No", "")
Here is what I put in the data grouping of the report.
EVALUATE(gcFieldGrp)
I get the error message: 'Missing Expression'

What did I miss?
Update: It turns out the Function doesn't like the empty string when I want no grouping.

This works.
IIF(!EMPTY(gcFieldGrp), EVALUATE(gcFieldGrp), "")
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform