Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deny leaving a Page
Message
 
À
19/07/2000 08:36:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393557
Message ID:
00394700
Vues:
11
John,

Yes and No < grin > In the Form.QueryUnload code put
if <  Required conditions are met >
   DoDefault()
   return .T.
else
   return .f.
endif

In your form release code put

if Thisform.QueryUnload()
   Thisform.release()
else
   <  message about why the user can't exit  >
endif
Thanks to Bruce for reminding me about the DoDefault().


QueryUnload() is code that is specifically designed to determine if the the form SHOULD be released. It's called first, before any control is deactivated, released, etc.

HTH
Barbara



>Barbara,
>
>Would the call to QueryUnload come before the ThisForm.Release()?
>
>How does QueryUnload differ from the Release method of a form?
>
>Thanks
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform