Andrus,
My VB isn't good, but you're passing a string to a method that looks like it want's an object(?). What does the method do?
Gary
>I want to call VB OLE object method whose definition in object browser is
>
>
PROCEDURE setObject(Obj AS VARIANT @) AS INTEGER
>
>I tried
>
>
cstr=REPLICATE(CHR(0), 20000)
>MESSAGEBOX( x.setObject(@cstr) )
>
>but got error
>
>OLE error code 0x80020005: Type mismatch.
>
>How to call this method from VFP ?