Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Using DE
Message
From
03/03/1999 12:09:59
 
 
To
28/02/1999 10:29:14
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00192441
Message ID:
00193654
Views:
13
Just to give a different thought..

I do use the DE. All my forms are classes based off the same base class. This form has some hooks to create the DE, allow a subclass to add cursors and relations ex.(THISFORM.AddCursor(cCursorSource, cOrder, vReadOnlyorBuffMode, cAlias, cDbc) or THISFORM.AddRelation(cParent, cChild, cOrder, cExpr, cName)). This adds cursor objects and relation objects to the DE attached to the form and then calls the open data. It solves the pathing problem since i can pass in the path to the DBC(which is usaully some property somewhere).

I tend to use private datasessions with small number of tables/views. This allows me to have the same form instantiated more than once with different record pointers. This also make the de responsible for opening and closing data. Another advantage i use is the fact that i can attach my DE to a CUSTOM class. This allows me to but business rules inside of custom classes and not have them dependent on data from outside source but still use the same Methodology as my forms. I also now have generic code for saving buffered data at the DE level. It loops through the cursor objects of the DE, checking buffering mode and if data is changed, and then saving.

I do agree with that there is no wrong way of doing this.



>
>Arnon, can you offer us any measurements on the effect of losing the DE on form instantiation? What are you doing instead of using the DE? Have you found any inconveniences in not being able to take advantage of containership with the DE?
Geno Prida
Watson Wyatt Worldwide
geno_prida@watsonwyatt.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform