Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the same form for different tables
Message
 
To
13/07/1999 16:55:41
Steven Herbin
SNH Computing Corporation
Swan Lake, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00238420
Message ID:
00241069
Views:
15
>>Hi Steve,
>>
>>I'm not sure I completely understand the problem here, but here's one thing to keep in mind. You can modified certain properties of the DE in the Init method with bound controls. Naturally, the property has to be writable at run-time (such as the cursor alias or cursor source). You do, however, have to do this prior to the tables being physically opened. If you set AutoOpenTables to .F. you can modify these properties in the Init, then issue This.DataEnvironment.OpenTables without any problem.
>>
>>The new Session base class in VFP 6.0 SP3, however, offers the opportunity to create formless business rules classes. By adding a customized DataEnvironment object and Form object to the class (when necessary) all sorts of intersting possibilites open up.
>
>George-
>
>This turned out to be the best solution. I use one of the table sets in the DE, then modified the CursorSource in the Form's init. It works like a charm.
>
>Guess I'm just a little slow getting into the OOP way of doing things, but I'm getting there.
>
Hi Steve,

Glad to hear it. as someone who "cut their teeth" under the structured programming paradigm, I can appreciate the problems you're facing. Keep on keepin' on. The folks here at the UT are always glad to lend a hand.

Regards,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform