Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu executing form methods and objects
Message
De
07/07/2010 09:53:29
 
 
À
06/07/2010 17:02:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01471439
Message ID:
01471675
Vues:
58
>>The main program in my project calls a modal form that calls a mpx in it's init. The form is the "home page" for the app and I want the menu items to execute certain controls and methods on the form. I can set skip of menu in the form/prg but can a menu execute tasks methods and events in a form?
>
>Execute the form as follows:
>
>
>LOCAL loForm
>_SCREEN.AddProperty("MyForm")
>DO FORM MyForm NAME loForm
>_SCREEN.MyForm = loForm
>...
>
>
>Then in the menu you can access the form methods as follows:
>
>_SCREEN.MyForm.MyMethod()


Thanks,

On the road with a painfully slow connection. Will try these suggestions.

Thanks for the help!

dg
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform