Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modeless Forms are not objects !?!?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00226135
Message ID:
00226444
Vues:
22
>>Why not pass (thisform) to the menu program. You could then have a pointer to the form.
>
>John,
>
>Because menu program do not continue to run. They create the menu and then terminate. Therefore any parameter you passed would be lost through going out of scope.
>
>There is a perfect solution here, use the features of the product as an OO environment. _screen.activeform will always be a reference to the currently active form. It will be NULL when no form is current.

Hi JimB,

There is one "gotcha" with _SCREEN.ActiveForm, I thought might be worth mentioning. If you use the Microsoft Toolbar 6.0, the _SCREEN.ActiveForm object refers to the toolbar and not the form. The only workaround for this that I've found is to use _SCREEN.Forms(1) instead.

PS Have a great DevCon. Sorry I can't be there.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform