>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