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 22:59:43
 
 
À
08/01/2001 21:30:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00460963
Message ID:
00461003
Vues:
18
Mike,

>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.

Just use the _vfp.Quit method:
on shutdown iif(messagebox('Wanna Quit?', 4) = 6, _vfp.Quit, '')
It seems to work, although I did get a Dr. Watson at least once in three tries. :-)
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform