Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Exit & return button
Message
 
 
To
04/11/2004 12:22:48
Carl Dobson
Reference Point Computers
Overbury, Tewks, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Miscellaneous
Thread ID:
00958171
Message ID:
00958179
Views:
17
Carl,

CLEAR EVENTS will only do something if there is a READ EVENTS in place:
* main.prg
do form xyz
read events && puts program into the event loop
messagebox( "we're outta here" )
return
now in your form once you issue the CLEAR EVENTS you'll see the messagebox popup and then your app will be gone.

>I need a simple Command button, which exits. My APP goes from main.prg and calls a form. I some code which will exit it back to the main.prg and close the form. Curently I have tried EXIT but this just creates a nesting error and so I have CLEAR EVENTS but this does nothing that I can see ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform