Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu executing form methods and objects
Message
 
 
À
05/07/2010 14:49:45
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:
01471444
Vues:
44
>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?
>
>Thanks
>
>dg

You can do something like this
if type('_screen.ActiveForm.Name') = 'C' and _screen.ActiveForm.Caption = 'myFormwithTheMethod'
   _screen.ActiveForm.myMethod()
endif
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform