Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Factory Objects - practical application
Message
From
14/12/2006 19:46:17
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
14/12/2006 17:50:17
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01177742
Message ID:
01177850
Views:
35
>ROFL
>
>You can implement it however makes the most sense for you. I did it at the application level.

That's true. I'm going to provide it with the datasession parameter. If it starts at the app level, it can open its own table and leave it open application wide. If I pass the DSID, it will switch, if necessary.

>
>>As Factory is such a lightweight object, I think it wouldn't hurt to instantiate one per DS, make it a Thisform.oFactory. Also, I don't see why do we have to have one factory. We can have a whole industry if we want. Nowadays even pet grooming is an "industry", so why not this.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform