MarnickBolle
Programmer
When users quit our program, they get a question and when they say "Yes" they quit the program.
This is the code:
gnResult=Messagebox("Quit program?",32+4+256,"Program End"
if gnResult=6
set defa to &gcStartDirectory
=sqldisconnect(gnConHandle)
close all
clear events
set status bar on
set sysmenu to defa
endif
Sometimes users get a fatal error at line 5: close all. The error they get is: "FILE IS NOT OPEN" and they quit the program. This has no consequences, because the user asked to quit the program, but it's not very nice.
What can be the reason of this error-message?
This is the code:
gnResult=Messagebox("Quit program?",32+4+256,"Program End"
if gnResult=6
set defa to &gcStartDirectory
=sqldisconnect(gnConHandle)
close all
clear events
set status bar on
set sysmenu to defa
endif
Sometimes users get a fatal error at line 5: close all. The error they get is: "FILE IS NOT OPEN" and they quit the program. This has no consequences, because the user asked to quit the program, but it's not very nice.
What can be the reason of this error-message?