Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top-Level form and application object
Message
De
23/05/1999 09:00:45
 
 
À
23/05/1999 08:51:16
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00221876
Message ID:
00221877
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform