Group Contition at Runtime
How do you change a Group Header's condition at runtime?
When I use the following code I get an access violation.
pView = pfrReport->FindObject( "GroupHeader" );
pView->Parent->GroupCondition = "[DataMod.MyQuery.\"AgentLevel\"]";
The code "[DataMod.MyQuery.\"AgentLevel\"]" works fine for the 'Condition' at design time.
When I use the following code I get an access violation.
pView = pfrReport->FindObject( "GroupHeader" );
pView->Parent->GroupCondition = "[DataMod.MyQuery.\"AgentLevel\"]";
The code "[DataMod.MyQuery.\"AgentLevel\"]" works fine for the 'Condition' at design time.
Comments
i can't remember if you can access condition directly.
quotes may be stripped when passing in.
or create a variable and use variable in condition expression
then just modify variable.
regards
gord