Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array by reference to a .NET .dll
Message
 
À
08/04/2008 11:42:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01309001
Message ID:
01309038
Vues:
20
>>Hi David:
>>
>>Use the function CLRCreateArray as
>>
>>oArray = CLRCreateArray(tcType, tnDim1, tnDim2)
>>
>>To create your array in VFP.
>
>>Fill it using
>>
>>oArray.SetValue(teVal, tnIndex)
>>
>>
>>And just pass it to your method it will have the new data if your method modifies the array.
>
>In my case, I don't think I'll need to do this, as the array will be passed empty and the .dll will fill it. How many elements will the array be initialized with under this - zero or one?
>
>David

The array will have the number of elements specified in the call to CLRCreateArray(). This function create a One based array, you could also use CLRCreateZeroBasedArray() as in .NET most arrays are Zero based.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform