>>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.