Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Entry and On Exit
Message
From
07/11/2000 16:29:13
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Florida, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
On Entry and On Exit
Miscellaneous
Thread ID:
00439021
Message ID:
00439021
Views:
61
I am printing several sets of possibly multiple page reports, i.e., for each ID there may be multiple pages of the detail band.

i am using the following UDF to set a variable that is initalized in the form calling the report:

*CHKLB
LPARAMETER in_lb
IF in_lb = pclb
RETURN .T.
ELSE
pclb = in_lb
RETURN .F.
ENDIF

I am trying to use the On Entry and On Exit events to trap the last page of a given ID. I have tried putting the following: chklb(lb_id), in the On Entry and On Exit methods of every band on the report, one at a time, with no success. The closest I came was putting it in the On Exit method of the last group footer on the report. I noticed that the pclb value was the same as the ID on the current page except for those IDs where mulitple pages were present, where the first page had the prior pclb value and subsequent pages had the current pc value, ah success! But then the next page with a new ID had the same pclb value as the previous ID where is should have had the current ID to make the system work.

Any ideas???

TIA
Dave Emerson
Next
Reply
Map
View

Click here to load this message in the networking platform