Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with releasing forms
Message
De
18/11/2003 01:32:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00846922
Message ID:
00850875
Vues:
23
i get an object error when i release the form explicitly.

what is wrong?

>i have form2 that shows on top of form1. if my user clicks the "ok" button in form2, i want form1 and form2 to be released and show form3.
>
>i have this,
>
>
>thisform.release
>_screen.activeform.release
>if _screen.activeform.caption="form1"
> messagebox ("form1")
>endif
>if _screen.activeform.caption="form2"
> messagebox ("form2")
>endif
>do form form3
>
>
>thisform.release is supposed to release form2 and _screen.activeform.release is supposed to release form1. the code that follows is only to check what form is still active.
>
>why am i getting the messagebox form2 instead of do form form3?

Hi.
I can't tell you why this happens.
But i would suggest releasing form1 and form 2 explicitely and the DO form3.
Kamil
Shout - if you have to,
smile - if you don't.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform