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 21:30:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
I want my cake, why doesn't this work
Miscellaneous
Thread ID:
00460963
Message ID:
00460963
Views:
49
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'), "")
Next
Reply
Map
View

Click here to load this message in the networking platform