Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array as a parameter to VB
Message
De
09/05/2003 10:49:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/05/2003 10:35:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00786781
Message ID:
00786784
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform