VFP Visual FoxPro 8 - Creating an EXE that works
Posted on 2010-09-11
It's been a long time since I've had to create a VFP EXE from scratch. I'm doing this for a friend and need a quick solution. . .
The program, which consists of a prg and an scx file, runs great in VFP. When I compile it into an EXE and run it on my dev computer, it makes a tone and doesn't show anything.
I have a project that has start.prg as the main program.
My start.prg shows:
set talk off
on shutdown do close
do form TextChange
My TextChange form has the following properties set:
Desktop is True
ShowWindow is 2 (as top level form)
the close.prg has:
The TextChange.scx form has one button that'll crunch some data if the user clicks it. To get out of the program, they merely click the close (X) in the top left of the window and it closes the program. The thing is, in the EXE, I never see the TextChange.scx form. I double-click on the EXE and here a little bonk and that's it.