i have a problem. I have a form and a main.prg in my application. From the main.prg i call the form. when a make the executed the application the screen open so fast that i can't see anything.
After you run the form from the main.prg you need to then "read events" which will keep the form open waiting for action from the user until they close the form down. Then just make sure you "clear events" afterwards:
Code:
open your form
Read events
***********
clear events
In the main.prg where you code.. DO FORM myForm.. the next line should be..
READ EVENTS
Then in the unload event of the myForm which was called above.. put the code..
CLEAR EVENTS
This is on the assumption.. that the main form.. calls other forms which when gets released gets back to myForm. When myForm is exited.. the application is exited with the clearing of events as above.
Yes it does help. I had no idea I was doing this wrong since VFP, for me, is self taught with the help of this forum and examples from some books. If it works, I use it. If it doesn't, I try something else.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.