Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference an other form than the mainform ?
Message
From
25/04/2001 19:16:20
Phillip Perkins
Technology Consulting, Inc.
Louisville, Kentucky, United States
 
 
To
25/04/2001 18:30:06
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Netherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00499895
Message ID:
00499916
Views:
36
>Stephen,
>
>I use exactly the same name:
>
>do form frmSearchForm
>
>I even renamed the scx to match the name. It has someting to whith being the mainform. When I run the form bij using Projectmanager->Documents->Run the form gives a bunch of errors but the frmSearchFrom.Refresh() works just fine.
>When I use the same frmSearchFrom.Refresh()by executing the frmSearchForm from an other form the error occurs.
>
>Theo

in your Load or Init event of your search form put:
public frmSearchForm
frmSearchForm = this

just make sure that on your Unload event:
release frmSearchForm

it's a quick and easy way to get around that.
"D'OH!" --Homer Simpson
Previous
Reply
Map
View

Click here to load this message in the networking platform