Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Startup form act as a splash screen

Status
Not open for further replies.

de1458

MIS
Jan 26, 2002
78
CA
Hi all,

we converted a VFP3.0 program to 5.0, but the first screen just fly by like a splash screen, which is suppose to be the main screen with couple of command buttons, then the program close itself, this program is working fine under version 3.0, and using the debugger the above situation is not happening, the program will do just fine, the code for the startup form as follows:
...
DO FORM form1.scx
READ EVENTS
...

any help will be very appreciated and TIA
Dennis
 
Don't start the application with form1.scx. Try a "main.prg"
e.g.

&& Beginning of main.prg
DO FORM form1 NAME oMAIN LINKED
READ EVENTS
QUIT
&& End of program

In form1.Destroy put:
CLEAR EVENTS

Brian
 
Thanks Brian,

I didn't mentioned the form in fact is called from a main.prg, and I took you suggestion, but I still can't get it right, now I am trying to run it on a win2k machine and found out the program is being ran as a process not app., no wonder I cannot find it anywhere and appeared to be was closed automatically after the splash,
we have already converted 4 other VFP3 program to 5, and they are basically the same coding, execpt calling different form as the startup screen, only this behave like this, need to do more research on MSKB, anyone has some hints?

Dennis
 
since you mention that you have done others conversions and they work, I would be looking at code or properties that might be causing it.

you could also go at it one piece at a time. make a new form and add to it one object at a time copied from the orginal. after each copy, run the form, when it repeats the problem then you have something to investigate.
Attitude is Everything
 
thanks all, I got it solved, one thing I certainly missed was the visible setting in the property, it was by default set to true, and I did programmatically assigned the visible property to true for the form, well the only "true" way is to go into property and set it from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top