Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release of a held-open form
Message
 
À
12/01/2005 13:22:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00976479
Message ID:
00976502
Vues:
9
>Hi. I have a form (in a project) that I hide and capture some values from later. The problem: MyForm.Release executes, but the screen still shows up when the program ends.
>
>Thanks, Randy

Randy,
*In my projects, I direct the the form's Release() to the form's QueryUnload():
procedure Myform.Release
this.queryunload

* Then in QueryUnload flow is redirected to a "house-keeping" procedure
procedure MyForm.QueryUnload
HouseKeeper(this)

* The house keeper usually assures that all open MDI forms are closed
procedure HouseKeeper(oform)
IF VARTYPE(MyForm)==[O]
   Myform.release && Sometimes I need to make the form name public
ELSE
ENDIF 
IF VARTYPE(MyForm1)==[O]
   Myform1.release
ELSE
ENDIF 
* etc
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform