Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array as a parameter to VB
Message
From
09/05/2003 10:49:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/05/2003 10:35:45
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00786781
Message ID:
00786784
Views:
20
>HI,
>I have a problem to send by reference array(s) as a parameter to
>method in object created from VB's activeX dll.
>VFP shows "Data type missmatch" error.
>What should I do with my VFP code to solve this problem?
>( I cannot change VB part)
>
>*-- Method declaration in VB
>Public Sub myVb(Cost() as Double, Factor() as Double, Param1 as Double, ErrCode as Integer)
>
>*-- VFP sample
>LOCAL loVB,laCost[2],laFactor[2],Param1, ErrCode
>* Initialize all variables
>
>loVB=CREATEOBJECT('myVBDll.proVB')
>* Call VB method
>loVB.myVB(@laCost,@laFactor,@Param1, @ErrCode) && This line raise an Error
>
>Thanks,
>Sergey Krayniy

Check ComArray()
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform