Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Binding
Message
From
14/02/2002 17:15:14
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00620031
Message ID:
00620397
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform