Ah, that's it.
Excellent, thanks.
Kev
>Your local variable must be initialized to a numeric value before passing it to the COM method:
>
>
LOCAL MyVar
>MyObj = CREATEOBJECT ("MyCOM.SomeClass")
>MyObj.SomeMethod (@MyVar)
>? MyVar
>
>
LOCAL MyVar
>MyVar = 0
>MyObj = CREATEOBJECT ("MyCOM.SomeClass")
>MyObj.SomeMethod (@MyVar)
>? MyVar
HTH
>
>>That's what I thought.
>>
>>Only I'm sending a local variable using @ to a COM I created in VFP, and it returns as value .T., when it should be a numeric.
>>
>>When I test this using the class library directly from Fox, it works, but when I access the DLL, it fails.