
Hi,
I have an x++ array I need to pass to c#, I already passed another variables to c# and it's working, but I couldn't figure it out with x++ array
System.String[] _invoiceLines;
_invoiceLines = new System.String[10]();
I use SetValue to fill the array, I used the debugger and I checked the data I'm passing and it's correct,
then I call a c# function inside the ax and this list (_invoiceLines) its one of the parameters.
am I missing something? there's a better way?
Thank you
Hi Kareem,
Can you share more codes? Or errors?
It seems that you cannot directly convert X++ arrays and CLR arrays, you should use the same type as the method expects. It's String[] ?