Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Abstract Factory
Message
 
À
09/05/2001 18:34:43
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00505565
Message ID:
00505623
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform