Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formset and DE in Class - IE unopen tables when in class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00062923
Message ID:
00063019
Views:
57
>Thanks Jim
>
> Someone told me earlier that the DE was saved as part of the
>class. How do I create a DE as a class. I assume just by opening
>the files manually with code right?
>
>Thanks Gary
Gary,

You can open the tables in code in the formset Load event, or you can create a de class in code and addobject to the formset in the load event.

* MyDe.prg
DEFINE CLASS MyDE AS DataEnvironment
* In here you can addobject the cursor objects and set their properties

* You can also ...
PROCEDURE BeforeOpenTables
* Write the code you want in here
ENDPROC

* etc, etc, etc

ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform