Hi,
I'm trying to send a datatable from a C# app. to a codeunit in NAV.
My problem is that i can't figure out how to use the Rows property on my datatable.
I would like to select a specific column by using this syntax (in C/AL)
myCALVariable := myDataTableFromDotNet.Rows.ToString();
but when i compile i get a compilation error saying that the Rows variabel is defined with fewer dimensions. Is there a way around this or shouldn't i use datatables from dotnet in my c/al code?
thanks in advance
0
Comments
You might have selected the wrong one. Or probably just pasted your code? I would try that.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
And there is only one "Rows" property to choose. This property returns a collection, but when using it in C# i can also call it with an index (Rows[x]) to retrieve a specific column.
But i don't seem to be able to use this index in C/AL.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
/henrik
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT