Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close a VFP6 applicaton?
Message
From
29/06/1999 16:35:22
 
 
To
29/06/1999 16:13:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235479
Message ID:
00235499
Views:
18
>Can anybody advise the best way of closing a VFP6 applicaton?
>I've been experimenting but get 'Fatal Error: Exception Code = C0000005' message before it exits.
>In my program (originally a 2.6a app I've converted to VFP6), the user selects Quit from the menu, this calls the Quit procedure in a .PRG which invokes a confirmation dialog box, then puts a datestamp against the user in the user table, then does:
>
>DO shut_dwn
>
>This calls shut_dwn.prg which contains these commands
>
>CLOSE DATA
>CLOSE ALL
>CLEAR ALL
>RELEASE ALL
>RELEASE WINDOW
>ON KEY
>ON ERROR
>ON SHUTDOWN
>SET SYSMENU TO DEFAULT
>SET HELP ON
>SET EXCL ON
>QUIT
>
>Your suggestions are most appreciated.

It's all right, except that you miss CLEAR EVENTS which is the main 'closure' command in VFP.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform