>Has anyone encountered this issue:
>
>1. Created a PRIVATE Variable prior to running a VFP Report
>2. This Variable is Updated in the On Entry Method of a Group Header
>3. This Group Header has a Field which displays the value of the Variable
>4, The Field has a Print When Condition based upon the value of the Variable
>
>Seems like the Print When conditions are evaluated prior to the Variable update in the On Entry Method resulting in the Print When condition for the Field not evaluating properly.
>FYI, if the Print When conditions are removed, the Variable displays correctly in the Group Header.
>
>Any help would be greatly appreciated.
Hi Marshal,
I have no good idea how to solve your problem inside the report. But it can be done outside.
Example:
SELECT;
Cur1.*,;
CAST(0 AS I) as iExtra;
FROM CursorToPrint
INTO CURSOR curHelp READWRITE
LOCATE
lvGroup = FieldToGrpoup
SCAN
IF ! lvGroup=FieldToGrpoup THEN
ENDIF
ENDSCAN
REPORT FORM ....
This give you control outside the wonders of report engine.
HTH
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]