Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array by reference from ASP to VFP COM Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00229415
Message ID:
00229600
Vues:
15
>You need place "@" sign in front of the array to pass by reference, otherwise you only pass the first element. (oComObject.Method(@MyArray)
>
>There is a ComArray() function in VFP that allows you to determine how arrays are passed to COM objects. Good information.


You can't do that from ASP since COM looks at the type library to determine
how the data is to be passed. The default is ByRef and using 0 based arrays
and you should be able to use COMARRAY to configure your method to accept
the array with this setting.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform