Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print When Issue
Message
From
11/04/2017 01:29:57
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01650029
Message ID:
01650039
Views:
54
>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
  *Group changed
  *alter field iExtra
 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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform