Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI Tech Listbar in Toolbar
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
DBI Tech Listbar in Toolbar
Miscellaneous
Thread ID:
01660432
Message ID:
01660432
Views:
105
Hi,

I have a toolbar control (which I created many years ago) that displays the DBI Tech Listbar ActiveX. This toolbar is in a VCX library (e.g. main_toolbar in MyTools.vcx). When I open the Toolbar in the IDE (I think this is VFP standard toolbar), it has the DBI Tech Listbar. The application main.prg instantiates this toolbar. And I think, in turn, the toolbar instantiates the DBI Tech Listbar. The problem is that when a user does not have the DBI Tech Listbar registered, the following error occurs:
"OLE error code 0x800040153 Class not registered" 
How can I change this so that I can catch the error with a Try/Catch? Because Try Catch around instantiating the VFP toolbar does not work. That is, the OLE Error happens first, and then Catch of the toolbar.

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform