Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unhandled Exception in OCX
Message
From
19/08/2020 20:25:29
 
 
To
19/08/2020 04:25:27
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01675817
Message ID:
01675827
Views:
90
>I am getting an unhandled exception in an ActiveX control, which seems to be difficult to avoid. I only wonder if there is a way in VFP from the calling method to avoid showing the message. The messagebox is a FATAL ERROR messagebox created by the ActiveX, but I was hoping to have something similar like in Word OLE to switch messages off. In the ActiveX there is no such property to disable output.
>Does someone know of a workaround?

To avoid errors in the first place I seem to recall some people having success with:

- issuing DOEVENTS or DOEVENTS FORCE tactically in their code
- similarly with SYS( 1104 ) - although I think that's more for heavy SQL munging
- you could experiment with .AutoYield

Is there any control licensing which needs to be installed or configured?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform