Passing Array To .Net Library

pdabasic

Active Member
Licensed User
How can I pass an array to myPDFLib?

The code looks like:

B4X:
public TableParams(uint numColumns, params uint[] widths)
     {...

And In C# I use it like this:

B4X:
TableParams tblParam=new TableParams(2,200,200);

And when I try it In B4P like:
B4X:
tblParam.New1(2,200,200)

I get an error mesage
:sign0085:
 

agraham

Expert
Licensed User
Longtime User
I don't think Basic4ppc supports uint arrays. It supports Byte, Char, Int16, Int32, Int64, Single, Double, Boolean and Decimal. It might be able to coerce a non-array parameter value to a uint but it won't try to do anything to an array. It just passes it as is. If you can use a supported data type then

Dim tblParam(2,200,200) As Int32
Dim numColumns As Int32
...
PdfLib.TableParams(numColumns, tblParam())
 
Top