Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want my cake, why doesn't this work
Message
From
08/01/2001 22:59:43
 
 
To
08/01/2001 21:30:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00460963
Message ID:
00461003
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform