Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exiting Program
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00291561
Message ID:
00292030
Views:
44
Ok, let me get this straight, actually let me tell you what I have. First I have a main.prg that looks like this:

* main.prg
on shutdown do myshutdown
do form LOGON
read event
on shutdown

my shutdown looks like this:

*myshutdown
clos all
clea all
capslock(.f.)
clear events
quit

my cmdbutton on LOGON form:

*cmd_do_admin
.hide
do form frm_admin
.cmdcancel.click()

my cmdquitbutton on LOGON form:

thisform.release()
_screen.release()
clea event



Ok, my startup form is LOGON (This form has timers that fire) and the showwindow is "As Top-Level Form". LOGON form also calls another form which is In Top-Level Form called FRM_ADMIN. If I use LOGON form "As Top-Level Form" then sometimes my whole application terminates (on first try anyway). If I use LOGON form "In Top-Level Form" then when I quit my FRM_ADMIN (the cmdquit contains thisform.release()) the main vfp window doesn't termiate along with application. How would I have the code in my main.prg for two TL's? Where would I have the other Read Event (there is one already in my main.prg)? How would I start my second TL? Do I leave any forms "As Top-Level Form"? I know I ask to many questions but basically all I want is to leave my LOGON form in "In Top-Level Form" so that my program won't terminate abruptly, but the catch is my main vfp window won't close with quit button. Thanks for replying bruce.

thanks
Nick Patel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform