Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release a TOp Level Form through attached Menu
Message
 
À
18/05/1999 12:06:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00220066
Message ID:
00220073
Vues:
26
>I Have a top level form and a menu is attached with it.
>The last pad of this menu is EXIT , now i want to relese the
>form through This pad selection,
>I have placed the Thisform.Release code in pad command
>but on selecting the pad a error message is generated
>that "Thisform" can be used only in form methord.
>
>Looking for quick solution.

I call the Queryunload of the top-level:

Topform.Queryunload()

which has the Release and Clear Events, and some other code.

Yours should work, though, if you launch the form with a NAME clause and refer to it from the menu.

DO FORM Topform NAME Topform

In Menu Exit:

Topform.Release
Clear Events
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform