Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only