>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