Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Abort
Message
From
01/12/2000 20:25:57
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to Abort
Miscellaneous
Thread ID:
00448407
Message ID:
00448407
Views:
60
Like everyone else I start applications with a .PRG which sets the environment, displays a splash screen, loads a menu system, etc. I check to see if the user is a valid user. if not I display a message and then I would like to exit the application. To exit I have a function called "Depart". When I do Depart the application does not close. What can I add to make the app close?

*-------------------------------------------------------------------------------
function Depart

clear events
deactivate window all
pop key all
on shutdown

if _VFP.StartMode = 0 && Development Mode
set sysmenu to default
set library to
modify window screen
=sys(3056) && Reread Registry and config.vfp settings
endif

return .F.
*-------------------------------------------------------------------------------
Next
Reply
Map
View

Click here to load this message in the networking platform