Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-Level form and application object
Message
From
23/05/1999 09:00:45
 
 
To
23/05/1999 08:51:16
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00221876
Message ID:
00221877
Views:
13
Hi Shane ---

The following works for me:

I have a Launch() method in my application object. In that method, I have the following code:

DO FORM toplevelform
READ EVENTS
THIS.Destroy()

When the toplevel form is closed, issue a CLEAR EVENTS.


>I have used the VFP 5.0 wizard to create an "application frame only." I would like to completely hide the Foxpro screen, so I thought I would create my main form as a top-level form. I am having problems getting the Shutdown to work right. When I close the form the application object doesn't get released, and if I put a QUIT in the Unload event of the form (which would call the application object's OnShutdown) I get a message about can't clear object in use. I can leave out the clear all but then the application is still active in memory. What am I missing?
>
>Shane
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform