Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array by reference to a .NET .dll
Message
 
To
08/04/2008 11:42:56
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01309001
Message ID:
01309038
Views:
19
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform