Get columns from datatable

hi,

i had the following output datatable: Column0,Column1,Column2,Column3,Column4,Column5,Column6,Column7,Column8,Column9,Column10,Column11,Column12,Column13\r\n0,3,0,5,8,3,2,5,8,1,2,8,1,2\r\n

i had to extract 0,3,0,5,8,3,2,5,8,1,2,8,1,2, anybody had an idea

HI @abdel,
Can you try this. yourText.Split(Environment.NewLine.ToArray, StringSplitOptions.RemoveEmptyEntries). Hope it works!

Regards
Balamurugan

Thank you,
what is the type of return? string ?

Hi @abdel,
Yes. It will return string array…

Regards
Balamurugan

i had used it but :

HI @abdel,

Can you try Extract(1).ToString
If possible, can you attache the xml please ?

Regards
Balamurugan

extractGTIN.xaml (8.0 KB)

Hi @abdel
xl sheet is missing…

i sent it by msg

Yes i got it.

@abdel

You can directly get it by using
string a =string.Join(“,”,DataTableVariable.R ow(0).ItemArray)

Regards,
Mahesh

it does not work

HI @abdel,
When you use this “Extract(1).ToString” , you are getting the output. below the screen i have attached.

Regards
Balamurugan.S

HI @abdel,
Here I have attached the xml also.

extractGTIN.xaml (8.3 KB)

Regards
Balamurugan