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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.exe flashes and diappears but have tried READ EVENTS solution

Status
Not open for further replies.

jokeb

Programmer
Sep 11, 2010
3
GB
I have a main form which calls a menu. I have a program which executes the form and has a READ EVENTS immediately after. In the Menu cleanup I have a CLEAR EVENTS. When I create the .exe the form is set to main.

 
Can you post the code?

Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Don't put the CLEAR EVENTS in the menu cleanup. Add an Exit or Quit command to the menu, and put the CLEAR EVENTS there.

I know this is confusing, but the menu cleanup code gets executed as soon as the menu is launched, not when the menu exits, as you would expect.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
I have removed the CLEAR EVENTS from the form and added an extra menu option as suggested. Still executes OK within VFP and still flashes in Windows environment
 
Sorry - I removed it from the menu cleanup.
 
You say the form is set as main, you need to set the prg as main, that calls the form and has the read events.

Maybe look here: faq184-6512

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top