>Jim,
>Thanks - it worked!. One other thing. We have a problem registering the DLL file on a another machine. We keep getting a DLL register fail. Is this a general problem or something to do with VFP! Thanks again, Denis
Have you installed and registered the runtime library components needed for the DLL? The specific files needed vary by which version of VFP you use and whether the COM server is single-threaded or Multi-threaded. I'd suggest building an install using Setup Wizard/VSI/InstallShield ISX LE (depending on which version of VFP is in use again) to put the runtime in place properly. It's not just a matter of copying a few files and registering them necessarily; some OSes are protective of their directory and registry, and you may require updated versions of some other system DLLs to make the VFP version you have happy.