Values stored in DT (Only one column):
Above Email Address captured from website and stored into Data Table.
We would like to store above email address in string variable (Always ignore RPABOT04@test.com email address ) separated by comma (,).
Expected output: Jayaraj.K@test.com , Erika.Majszin@test.com
Check below post for your reference
Hope this may help you
Try as below
String.Join(",",dt1.AsEnumerable().Where(Function (r) Not r.Field(Of String)("BuyerEmailAddress").equals("RPABOT04@test.com")).Select(Function(a) a.Field(Of String)("BuyerEmailAddress")).ToArray())
If this resolves your issue then please Mark as solution, so that others can be benifited
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.