Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu is not an object causes problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00018089
Message ID:
00018092
Vues:
38
>I am creating a VFP 3 application in Windows 3x and I just ran into a major problem in my app. I have a button bar which allows user to perform functions by clicking on a button. Well, they also wanted a menu with the same functions available so I added one but now I realize I cannot reference any object in the formset from the menu. I thought I could just call the objects using the same commands from the click events of the tool buttons. Is it true that since I can only reference objects from within methods the menu is completely useless? I can only DO forms and Fox procedures without object references? Is there no way to change a property or reference an object via the menu?

You can address objects on the form from the menu like this:

_screen.activeform.myObject.myObjectMethod()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform