Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters by reference to an activeX control
Message
 
 
To
25/09/2002 10:45:21
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00704244
Message ID:
00705054
Views:
13
Lucas,

VFP does not have an integer memvar type. The numeric memvar you created does not use the same binary storage format as an integer. If you really have to send the integer to the method by reference you'll have to do it with strings. Convert the number to it's binary representation in a string memvar and pass the string by reference.



>When a try to pass values by reference to a third part component, who expected that, the folow error occurs :
>
>Type Mismach
>
>The component activeX expect 16-bit integer values by reference.
>
>What i'm doing :
>
>v1=100
>v2=100
>activeXcomponent.Method(@v1,@v2)
>
>The error occurs.
>
>When i do the folow :
>
>activeXcomponent.Method(v1,v2)
>
>
>Without referces, the error NOT occurs, i mean, the type of variables seams to be correct. The problem is about THE reference.
>
>I check the Component's type library , and the type of parameters are
>VT_PTR.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform