Discussion:
NEW to VFP 6.0 using FORMS
(too old to reply)
John Cosmas
2005-06-15 08:38:09 UTC
Permalink
I created an APP and set my main to MAIN.PRG. In my MAIN.PRG, I have
command DO FORM frmswitchboard. So, when I've compiled my application into
an EXE, it comes up and just goes away. Is there something I have to do to
keep it up. I've enclosed my the part of the MAIN.PRG that calls my form

** MAIN PROGRAM **
** SET STATUS ON
SET TALK ON
SET DELETE ON
SET MULTILOCK ON
SET EXACT OFF
SET CONFIRM OFF
RELEASE WINDOW msgwind

** Set the DEFAULT director **
SET DEFAULT TO C:\Progra~1\GIMEdi~1\
USE
CLEAR

** Opens the local SETUP table **
USE setup SHARED ORDER CODE AGAIN
gstrAppDir = "C:\Progra~1\GIMEdi~1\"
gstrHomeDir = UPPER(TRIM(Dir_home))

** Starts the SWITCHBOARD
DO FORM frmswitchboard
Turan Fettahoglu
2005-06-15 09:45:39 UTC
Permalink
when I've compiled my application into an EXE, it comes up and just goes
away.
...
** Starts the SWITCHBOARD
DO FORM frmswitchboard
Add READ EVENTS as last line. This should do the trick. Any FoxPro newbie
has tripped over this line!

HTH
Turan
John Cosmas
2005-06-15 13:14:06 UTC
Permalink
Thanks. It's been 6 years since I had to write this code. I'm using .NET
now, and it's a lot more forgiving.
Post by Turan Fettahoglu
when I've compiled my application into an EXE, it comes up and just goes
away.
...
** Starts the SWITCHBOARD
DO FORM frmswitchboard
Add READ EVENTS as last line. This should do the trick. Any FoxPro newbie
has tripped over this line!
HTH
Turan
Loading...