Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Mar 6, 2000

EXE Starts and Ends Immediately

Question:
When I build my application as an EXE and run it, the application comes up and then immediately disappears.

What is wrong?

Answer:
You need to create an event loop that will hold your application in memory until you leave the application (choosing File | Exit, for example).

The command called READ EVENTS does exactly what you need. You need to put a READ EVENTS into your code, right after the code that sets up the menu and the environment.

Now you need a way to get out of that event loop when you want to leave the application. Visual FoxPro has a CLEAR EVENTS command that will end the event loop. Put a CLEAR EVENTS into the code that tells your app to end (in the menu item File | Exit, for example).

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap