Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object not found (Form)
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00182437
Message ID:
00182439
Views:
11
>I’m using two forms one is customer file maintenance (Custfm) and the other is case list (Casefm). When the two forms are active and the user scrolls through the customer screen, I would like to update the list of the client’s cases. So I’m using the following codes in my custfm form to refresh the case list:
>
>if wexist("casefm")
> casefm.activate() <== Error line
>endif
>
>During development time it works fine, when I have just two forms open. But when using .exe “Object casefm not found.” Why does wexist see it, but not the next line. What I’m doing wrong.
>
>Thanks
>
>Mike Azar

There are two basic ways to track form object. One of them is to link object to some external property:
Do Form Myform Name oApp.myform Linked
Now, you may use the link to refer to this form object later on:
oApp.Myform.Show()
Is it what you're looking for? Another way is to pick up form object refernce on request.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform