Yes, you use the right syntax.
Are you sure COM object is registered?
>Hi,
>
>I am trying to use a COM object from VFP. I have some sample VB code which works:
>
>
> Dim mobjSearchOpts As NETRICSLib.SearchOpts
> Set mobjSearchOpts = New NETRICSLib.SearchOpts
>
>
>and I have tried the following in VFP:
>
>
>m.loSearchOpts = CREATEOBJECT("NETRICSLib.SearchOpts")
>
>
>but get this error:
>
>"Class definition NETRICSLib.SearchOpts is not found."
>
>Am I using the correct syntax?
>
>thanks,
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.