Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to store form related procedures
Message
 
À
29/07/1999 09:01:44
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00247602
Message ID:
00247632
Vues:
28
This will show my ignorance, but how do I get the reference to my form (oForm) from within my form?
>
>>I have a form with a procedure that needs to be called from multiple places within the same form. If I place the procedure in a procedure file I can no longer make "thisform" type refrences. Where can I store this procedure so that it is considered part of the form?
>
>Besides of adding a method, You could send a reference to the form along with the functioncall.
>
>
>Like:
>
>DO myfunction WITH param1, param2, THISFORM
>
>function MyForm
> lparameters param1, param2, oForm
> ....
> Do some stuff
> ....
> oForm.refresh()
> oform.property = value
>return
>
>Good luck,
>
>Walter,
Marvin Masson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform