Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a form class to recognize who created it.
Message
De
14/05/1997 14:37:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00032163
Message ID:
00032252
Vues:
38
In the calling method of the custom (or form, or whatever) class:

DO FORM Myform WITH This

or:

loForm = CreateObject("MyForm", This)
loForm.Show()

or:

This.oForm = CreateObject("MyForm", This)
This.oForm.Show()

-------
In the Init of the MyForm class:

LPARAMETERS toCallingObject

Thisform.oCallingObject = toCallingObject

At this point, any method in MyForm can address any public property or method in the calling object as Thisform.oCallingObject.PropertyName or Thisform.oCallingObject.MethodName(). Note that the property or method addressed must be public.
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform