Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Shutdown Strategies - Return control to APP?
Message
 
 
À
13/07/1998 13:55:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00116865
Message ID:
00116872
Vues:
11
Terry,

Return .F. from QueryUnload() if the form can't be closed, and don't release the form if it does return .f.

if ( _screen.Forms[i].QueryUnload() )
   _screen.Forms[i].Release()
else
   _screen.Forms[i].Activate()
endif

>Is there a good way to stop the shutdown process from the routine called by 'On Shutdown'? I would like to emulate the "Save Changes?" "Yes, No, Cancel" like the big boys do. I am using query unload to find the dirty buffers and that works ok, but I can't figure out the "cancel" part to return to the app. Thanx in advance.
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