Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event Binding
Message
De
14/02/2002 17:15:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00620031
Message ID:
00620397
Vues:
12
Larry,

I've tried to implement your example. The idea you stated is exactly what I want to do. That is, to have multiple buttons run the same code and use the tag property of the button to discern exactly what button was clicked.

Prior to Event Binding, I have been setting the onaction property to run a VBA macro that I had stored in a template that I'm attaching to the document via automation. Your example sets the OnAction to 'MyTest'. Is your example designed to run a macro that is stored somewhere? It does not seem that the _CommandBarButtonEvents_Click procedure ever runs even though I'm getting confirmation that the binding occured. EVENTHANDLER(oMyCB,oCB) returns .t.

I don't like asking so many questions, I'd rather learn on my own but I can't find a source of information on this subject. If you know of a good one please pass it along.

Thanks for your help, John.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform