Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a Modelss form from the init
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01263173
Message ID:
01263222
Vues:
13
>>I have a modeless form for displaying status in a small program where I am calling a setup procedure from within the form init. If there are problems I need to close the form but I can't figure out how. The code to call the form is:
>>
do form Jcomm name xoMainForm Linked
>>read events
>>
>>I tried returning .F. in the init but the empty form just stays there. I tried clear events in the gotfocus but same thing.
>
>How about:
>
>do form Jcomm name xoMainForm Linked
>IF NOT ISNULL(xoMainForm)
>   READ EVENTS
>ENDIF
>
>
>**** Jcomm INIT
>IF SomethingBadHappened
>   RETURN .f.
>ENDIF
>
Many thanks. That did the trick.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform