Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to store form related procedures
Message
De
29/07/1999 09:48:09
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00247602
Message ID:
00247647
Vues:
28
Marvin,

>This will show my ignorance, but how do I get the reference to my form (oForm) from within my form?

Never mind. ;-)


You may have the following code in a clickevent (or another method or event) in a form.

DO Myfunction IN Myprocfile WITH param1, param2, ... , THISFORM

The THISFORM parameter passes a reference to the called function, so the function LPARAMETER statement looks like:

LPARAMETES Param1, Param2, ......, oForm

The oForm variable refers to the calling form.
Now you could use:

oForm.DoSomeMethod
oForm.property=Somevalue

In stead of

THISFORM.DoSomeMethod
THISFORM.property=Somevalue


Good luck,

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform