Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
THISFORM.Release doesn't release the form!?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00154872
Message ID:
00154896
Vues:
14
Michiel,

I don't think you can issue a Show() message from inside the Init(). If the form is modal you prevent the Init from really completing. It's the same as issuing a READ EVENTS inside Init() it's not a good idea. If you want to use an object instead of a DO FORM you'll have to just call the Show() method in the line after createobject().

>We are using VisualFoxPro 6.0. We defined a form in our class library. We create this form like this:
>
>fSearch = CREATEOBJECT("listform")
>
>Works like a charm. After that we put in the Init() of that form the following:
>
>THISFORM.SHOW()
>
>We have defined a button on this form with the Cancel property set to TRUE. When we press this button the following is done (in the Click() event):
>
>THISFORM.RELEASE()
>
>And nothing happens. The form ISN'T closed. But when we press the X (closebutton) on the righttop side of the form it DOES close.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform