Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data environment for report - opinions, please
Message
De
25/02/1997 12:21:41
 
 
À
25/02/1997 11:21:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00021948
Message ID:
00021958
Vues:
31
>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?

Hi Tina,

I usually just go the easy way and do my select before the report, then run the report against the cursor. It would also seem to keep the report form more generic if you wanted to use different tables/cursors with it. My $.02.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform