Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0: Where to put code scoped to current datasession
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051041
Message ID:
00051045
Views:
33
>I received this message via e-mail on 9/18/97 and was wondering if someone had responded.
>
>
>Tim Westmoreland
>The Ashley Companies
>twestm@tsixroads.com
>
>******************************************************************************************************************************************
>
>Hi all,
>nowhere in the VFP docs can I find an answer to the following problem:
>The forms I use in my app have all private datasessions.
>But many Set commands (like set deleted or set exact) are scoped to the current
>datasession.
>Therefor it is no use to do these set commands once at the beginning of my app.
>
>
>I would like to put these set commands into my base class for forms. But I
>can't find how. The earliest event for a form is the Load-event, however the
>BeforeOpenTables Event of the Dataenvironment runs before the load of a form.
>Now, there seems to be NO DATAENVIRONMENT for a form CLASS. Does that mean, I
>have to put my set commands in every Dataenvironment of all my forms, even so
>it is always the same code and all forms are based on the same class? Does not
>seem very object oriented to me...
>How can I avoid this?
>
>TIA, Peter (Peter.Mair@cp.novartis.com)

There are obvious questions to the message's originator:
How do you really create forms in your project? Are you using Class or Form designers? If you use classes, how you define (if ever) DE for the forms?
Actually, a developer has to decide first about these dev strategic questions and shouldn't mix them.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform