Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want my cake, why doesn't this work
Message
De
08/01/2001 21:30:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
I want my cake, why doesn't this work
Divers
Thread ID:
00460963
Message ID:
00460963
Vues:
50
Here's a nice one liner for your development environment:

on shutdown iif(messagebox('Wanna Quit?', 4) = 6, _vfp.DoCmd('QUIT'), '')

The catch is it throws an error. You could trap it, but it would be a two liner then, shucks. Meanwhile in VFP7, this works:

ON SHUTDOWN IIF(MESSAGEBOX("close?", 4) = 6, EXECSCRIPT('QUIT'), "")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform