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

Click here to load this message in the networking platform