Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data environment for report - opinions, please
Message
From
25/02/1997 11:21:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Data environment for report - opinions, please
Miscellaneous
Thread ID:
00021948
Message ID:
00021948
Views:
73
I have seen data environments (not to be confused with a DataEnvironment object) set up in VFP in many ways, and want some opinions on methods.

When you have the DataEnvironment on the form set up and controlled properly, and then want to print a report on a subset of this data from a control on that form, I have seen:

-SELECT statement in the object method, prior to REPORT statement that creates a new cursor for the report

-DATAENVIRONMENT object in the report (private) that creates the proper cursor

-SELECT statement in the INIT method of the report DATAENVIRONMENT

I'm sure there are other permutations possible, but my question is this: I am assuming that I want the report to contain the environment information, so that the rules of encapsulation are enforced. However, when there is an intricate dataenvironment created in the form, it seems silly to recreate it in the report.

Opinions, please?
Tina Robichaux
Interland, Inc.
www.interland.net
Next
Reply
Map
View

Click here to load this message in the networking platform