Hello everyone,
sorry for so many new topics, but I am new to UiPath
I have a datatable “dtVodafone”. In this datatable there are three columns “Number”, “Name”, and “Paynumber”.
I want to read each row to have the following output:
12345,Dennis,09876
23456,James,07654
How can I store each row to one single variable string?
Thanks in advance,
Dennis
(I couldn’t find a topic that really has the same intention as me)
Hi @bibalesecret
Try this approach
strData = String.Join(vbcrlf, Dt_Data.AsEnumerable.Select(Function(r) String.Join(",", r.ItemArray.Select(Function(x) x.ToString))))
Refer the xaml file
StoreRowsInOnesStringVariable.xaml (7.0 KB)
1 Like
That worked fine, thanks!
What shall I do to get the following output without “vbcrlf”?:
12345,Dennis,09876,23456,James,07654
Thanks in advance,
Dennis
@bibalesecret
Instead of vbcrlf use the emtpty string “”
strData = String.Join("", Dt_Data.AsEnumerable.Select(Function(r) String.Join(",", r.ItemArray.Select(Function(x) x.ToString))))
1 Like
system
(system)
Closed
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.