Hello I have this input:
And the output that I want is:
Array_Names={“Alex”,“Dante”,“Vergil”}
dtData.AsEnumerable().Select(Function (x) x("COLUMN1").toString.trim).Distinct().toArray
1 Like
Try this:
=> Read Range Workbook
Output-> dt
=> Use Below syntax in Assign:
uniqueNames = dt.AsEnumerable().Select(Function(row) row.Field(Of String)("COLUMN1").Trim()).Where(Function(name) Not String.IsNullOrEmpty(name)).Distinct().ToArray()
uniqueNames
is of dataType Array(System.String)
=> You can print it in Message Box or Log Message String.Join(", ", uniqueNames)
Regards
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.