Hi team could you help me with this topic. I have a datatable (input, see image below), and I require to get the output(see image below), i am trying to split the datatable based on space,enter or any other delimiter to get that result
I’m using this code in a invoke code activity but it doesn’t retrieve the expected output
Dim dtResult As DataTable = dtOriginal.Clone()
For Each row As DataRow In dtOriginal.Rows
’
Dim values As String() = row.ItemArray.Select(Function(x) x.ToString().Split(" "c)).SelectMany(Function(x) x).ToArray()
For i As Integer = 0 To values.Length - 1 Step dtOriginal.Columns.Count
dtResult.Rows.Add(values.Skip(i).Take(dtOriginal.Columns.Count).ToArray())
Next
Next