How to concat one column values in a string?

i had a datatable with column name names
names
mithesh
rahul
rohith
ramesh

my output should look like
mithesh ,rahul,rohith,ramesh

in uipath. can any one help , i aslo used String.Join(“;”,output.AsEnumerable().Select(Function(a) a.Field(of string)(“Name”)).ToArray()) but getting error

@Mithesh_Reddy_Bolla

Check as below

Try as below

string.Join(";",dt.AsEnumerable().Select(Function (a) a.Field(of string)(“Column1”).ToString).ToArray())

Assign the above to a String variable for further automation

Hope this may help you

Thanks

i used process c# while building project . while assiging name getting following error
image

@Mithesh_Reddy_Bolla

Nice, no worries

For C# syntax will change little bit, you can write as below

string.Join(";", dt.AsEnumerable().Select(a => a.Field<string>("Column1").ToString()).ToArray());

Hope this may help you

Thanks

thanks a lot , it worked.