Compare array values and replace duplicates

hi all, i need to compare two string arrays and replace duplicates with anything in a new array.
Example:
Arr1={“one”,“Two”,“Three”,“Four”}
Arr2={“Two”,“Five”,“one”,“Three”}
ResultArr={“2”,“X”,“1”,“3”}

Any help would be appreciated i searched alot for a solution didn’t found any i don’t need this specific i want to know the concept and if there is any xaml file it would be very helpful.

Regards

Main.xaml (10.7 KB)
Just refer it!!!
Hope it will help

2 Likes

Thank you it helped a lot i really appreciate it.Main.xaml (11.8 KB) here is the file modified a bit for the same result in the post for anyone who will face the same problem.

Hi @Mohammad.Khaled

Check this

DT=dtYourDatatable.DefaultView.ToTable(True,“ColumnName”)

Th@nks
@shwin .S

1 Like

Main.xaml (25.1 KB)
Try this!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.