Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to store form related procedures
Message
From
29/07/1999 09:48:09
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00247602
Message ID:
00247647
Views:
17
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,
Previous
Reply
Map
View

Click here to load this message in the networking platform