When I run my main form and several child forms within it from the VFP6
development environment, they all work fine, and exit into the command
window when I quit.
My final issue is probably a trivial one but is very frustrating. I have a
Main program that exists primarily to do some startup initializing of the
databases and launch the main form, sfEditor. I call the form:
do form sfEditor
read events
The problem comes when I want to quit the program. Exiting the form (using
the standard wizbtns.vbx buttongroup) I end up with an empty window (main)
that I've created as a container for the child forms. If I include code to
release that window, I end up with a blank window. If I close that window
manually, I get a blank VFP screen that won't close (I have to ctrl-alt-del
and wait for it to timeout before I can close it).
I've tried the kitchen sink approach, throwing in every bit of cleanup code
I can figure out:
CLEAR EVENTS
CLOSE DATA
CLOSE ALL
RELEASE ALL EXTENDED
CLOSE WINDOW main
DEACTIVATE WINDOW main
CLEAR ALL
SET CLASSLIB TO
CLEAR PROGRAM
CLEAR ALL
CLEAR
ON SHUTDOWN
ON ERROR
What am I missing?
TIA.
Randy
Hallo Randy
try
ON SHUTDOWN QUIT
before(!!!) your command
READ EVENTS
Greetings, LUTZ
--
Cy Welch
89 RS 5.0 TBI, its not fast, but its still fun.
67 C10 Shortbed Stepside
"Congenital Kano" <jrs...@home.com> wrote in message
news:TCaz6.6237$4L4.6...@news1.frmt1.sfba.home.com...
Thanks.
Randy
"FRANCK GmbH" <Fra...@Franck.Hagen.de> wrote in message
news:3ACD6A9B...@Franck.Hagen.de...
As addition :-) [from FAQ on my site]
Question: Cannot Quit VFP-application by [x]. How to overcome it?
Answer: See. ID: Q172455, Q110970, ON SHUTDOWN in MSDN. As adding, if you
wish, that your application was normally finished on closing OS
[CTRL+ALT+DELETE], add into end of your procedure MyCleanUp, called on an
event ON SHUTDOWN, something similarly to following:
PROCEDURE MyCleanUp
ON SHUTDOWN
...
IF VERSION (2) = 0
QUIT
ENDIF
Best regards.
Michael Drozdov, ICS Soft, Perm, Russia
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mailto:Dro...@ics.perm.su
My Page: http://vfpdmur.narod.ru/
ICS Page: http://ics.perm.ru/ [on Russian]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Congenital Kano <jrs...@home.com> сообщил в новостях
следующее:w4yz6.8807$4L4.9...@news1.frmt1.sfba.home.com...
Randy
"Michael Drozdov" <Dro...@ics.perm.su> wrote in message
news:uGjcQM0vAHA.2056@tkmsftngp05...
--
Cy Welch
Senior Programmer/Analyst
MetSYS Inc.
http://www.metsysinc.com
"Congenital Kano" <jrs...@home.com> wrote in message
news:w4yz6.8807$4L4.9...@news1.frmt1.sfba.home.com...