Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does VFPCOM BindEvents() work with Excel 97?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00283195
Message ID:
00283288
Views:
19
>>this line will bind events of oButton to identically-named methods of oVFPButton. Try exporting the events of oBar to see what can be bound, and base a class on the exported events. Try:
>>
>>oComUtil.ExportEvents(oButton,'oBtnEvnts.PRG')
>
>The problem is that
>
>oComUtil.ExportEvents(oButton,'oBtnEvnts.PRG')
>
>doesn't do anything with Excel
>97, but it brings this in Windows 2000 +Office 2000
>
>DEFINE CLASS _CommandBarButtonEvents AS custom
> PROCEDURE Click(Ctrl,CancelDefault)
> * Add user code here
> ENDPROC
>ENDDEFINE
>

Then I suspect that the button's Click() event is not reachable under Excel97 - certainly the object models between Excel2000 and Excel97 are different. Sorry.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform