Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 to have visual session class?
Message
From
24/11/2000 15:48:05
 
 
To
24/11/2000 09:45:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00445047
Message ID:
00445262
Views:
15
Mike,

>Why would you possibly want to subclass a session class? It has one purpose, and one purpose only, to create a datasession when you need it. If you want a datasession with code attached just use a form instead. Having it as a PRG only cuts down on overhead.

I have a "base" class defined as Session that I call "webdata". It includes many generic data-handling methods and properties and Pre- and Post- hooks, such as BeforeSave, AfterSave, etc.

Many of the methods have all of the functionality needed for specific business objects based on this class, but other methods will differ from one business object to another.

Your view of the session class seems to be pretty narrow, and you seem to argue that a form is superior if you need code. Doesn't make much sense to me.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform