General information
Category:
ActiveX controls in VFP
This is how I check to see if an active x control is loaded for a form.
* Check to see if OCX installed and loaded.
IF TYPE(".oleTreeview") # "O" OR ISNULL(.oleTreeview)
Do your thing here
ENDIF
>Hi!
>We are trying to check if an active x control is registered on a form so that we can run regsvr32 if it is not and avoid any error messages for the user. We are able to see trap the error - but not until after the form has started to load and the open dialogue box has appeared. Does anyone know a good way to tell if a control is not registered without alerting the user? (This situation should be rare so we don't want to use any api functions to check for this everytime - it would be wastefule).
>
>Thanks!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only