Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional closing form
Message
 
 
À
19/02/1999 07:36:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00189204
Message ID:
00189793
Vues:
11
Maros,

Just to point out something about the destruct sequence in VFP, by the time the Destroy() method of outermost container (your form) fires all of the contained objects have already destructed.

>I create main SDI form of my app. I want avoid of user to immediately closing main form clicking on close button on upper-right corner of form. I add to destroy event of form next few lines.
>
>if messagebox('Do you really quit application?',36)=1
> clear events
>else
> return .f.
>endif
>
>If user answer Yes, form close. It is o.k. If user answer No, form close too. How can I prevent closing form, if some condition is not meet.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform