Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object not found (Form)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00182437
Message ID:
00182439
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform