Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Has anyone figured out what the setobjectref is for in F
Message
 
À
12/02/1999 12:09:39
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00187065
Message ID:
00187073
Vues:
26
Hermann,

SetObjRf.prg allows you to set and object reference to a property or variable. I thas the added functionality of returning a reference to any existing object without creating a new one.

You pass it up to four parameters

toObject an object reference
tcName the name of the object
tvClass the class that the object should be created from
tvClassLibrary the class lib that the class is found in

Example syntax:

* Form Init
This.MenuMgr = SetObjrf(.NULL.,"MenuMgr","MenuMgr","Menu.vcx")

after this code the form's MenuMgr property will have an object reference to a MenuMgr object.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform