Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Factory Objects - practical application
Message
From
15/12/2006 12:13:43
 
 
To
14/12/2006 19:46:17
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01177742
Message ID:
01178044
Views:
52
You might also create a set_datasession method in the relevant clases.

Anyway I prefer a factory to produce an object and not just tell me the class name. In special cases a CreateObject() might not even work, if I wanted to create an object based on a class within another EXE or APP, I'd need NewObject(). I might also want to create an object based on "empty", so the factory could produce this by Createobject("empty") and add properties/subobjects to it, then hand out the ready to use object.

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform