Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Quit VFP in On Error routine
Message
From
13/04/1998 10:40:29
 
 
To
13/04/1998 08:21:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00091468
Message ID:
00091532
Views:
21
>>The code section is:-
>> ROLLBACK
>> CANCEL && I have tried with and without Cancel
>> CLOSE DATABASES
>> CLOSE TABLES
>> QUIT
>>
>>Any ideas on what I am doing wrong here?
>>
>>Alain Legrand
>
>
>Have you tried CLEAR ALL and CLOSE ALL instead of the other two CLOSE statements?
(John Koziol)


Here is some code I got from Mike Feltman of F1 Technologies:

set function ctrl+F1 to ;
"cancel; clear all; close all; clear program;" ;
+ " clear all; on error; on shutdown;" ;
+ " modify window screen; set path to;" ;
+ " set sysmenu nosave; set sysmenu to default;" ;
+ " clear all; close all; _screen.MousePointer = 0 "

I use this in a macro so that I don't have to quit (and in those cases where VFP says "unable to quit"), but there may be some gems in there that will help your situation. This macro seems to work reliably for me.

Peter Robinson
Peter Robinson ** Rodes Design ** Virginia
Previous
Reply
Map
View

Click here to load this message in the networking platform