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

Menu Problem

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
I expect that this problem is simply my inexperience with menus. I inherited this application and it's different from anything I've ever written.

It was written ten or so years ago. It has always been run within the development environment. The program starts initializes some variables, opens some tables, sets up the menu, and stops. The menu items that are chosen call various procedures within the main program through a "Set Procedure" statement. This works fine within the development environment; VFP is still running.

The problem comes when I compile the program into an EXE. When the program Returns, there's no window open so no menu to choose from. How do I keep the main window open until the user chooses the menu item to exit?

TIA,
Shanachie
 
Shanachie

If it's a regular menu (an mpr file), try in the main program:
Code:
DO myMenu.mpr 
READ EVENTS

P.S. If you use this, when the application closes you would need to use a CLOSE EVENTS.
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Did you mean CLEAR EVENTS? That seems to work.

It's behaving properly now. Thank you very much.

Shanachie
 
Shanachie

Did you mean CLEAR EVENTS? That seems to work.

Yes, that is what I meant. I should never answer these, before my first coffee in the morning.:)


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top