Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing VARIANT @ parameter to OLE object
Message
From
21/04/2005 09:59:51
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
To
21/04/2005 05:47:57
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01006867
Message ID:
01006978
Views:
15
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 ?
Previous
Reply
Map
View

Click here to load this message in the networking platform