Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abstract Factory
Message
 
To
09/05/2001 18:34:43
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00505565
Message ID:
00505623
Views:
17
Anthony,

>I'm finally getting a chance to play abit with 6.1 and enjoying it.

Glad to hear it!



Actually, the Abstract Factory can instantiate classes from PRGs with no changes at all. To check this out, add a new record to Classes.dbf:

cKey = Session
cClassName = CPrivateSession

(Note: CPrivateSession is stored in CSession.prg)

Someplace within your application, add the following test code:

lcClass = goapp.oMMFactory.GetClassName("Session")
z = CREATEOBJECT(lcClass)

P.S. Please send future beta messages directly to us rather than posting them on the UT.

Thanks,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform