Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with and ActiveX control at run time?
Message
From
20/04/2007 11:44:22
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01218239
Message ID:
01218342
Views:
25
>>
>>Try and create an instance of the control using CREATEOBJECT() and do this from inside a TRY CATCH ENDTRY construct. Then you can test whether its possible to instantiate the control or not and take appropiate action.
>
>Jos,
>
>Thank you for the suggestion. This may well work.

Dmitry,

This is actually what I use to do this for several controls that our apps need. The only catch is if the user does not have sufficient rights to register the control. But we test for this also inside a second TRY ENDTRY block and inform the user as appropiate.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform