Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RichTextBox
Message
 
To
11/09/2000 09:50:46
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00414861
Message ID:
00414872
Views:
22
>I am using a richtextbox activex control in a form. This app is a network environment. Some machines don't have the richtextbox ocx so I do a Run /N RegSvr32 "\\gvmain\applications\foxapps\drawingPDM\Special\richtx32.ocx". How can I check to see if this code needs to be ran or not? Thanks for the help.

You'd have to check the registry for the existence of the ProgId (Richtext.Richtextctrl.1). You could use the IsKey() function in the registry class that ships with the VFP FFC to do this. However, it's far better to do an installation to make sure of this. Just because it's registered doesn't mean that it'll work correctly. In some cases with ActiveX controls, there are design and runtime license CLSIDs that have to be installed. Which one depends on whether your running in design mode or run mode. It's perfectly possible to have the control supposedly installed, yet have it not work.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform