How to convert Uipath.Generic() to String

I have an array of Generic value which contains [2,3,“boy”,4]. I would want to convert it to string like this “2,3,boy,4”

Thanks in advance for helping

give a try on

1 Like
someArray = new String(){"2","3","""boy""","4"}
someString = String.Join(",",someArray.ToList().Select(Function(x) x.ToString().Replace("""",String.Empty)))

Your output when written to log:

08/25/2021 16:04:45 2,3,boy,4

1 Like

simply - String.join (your arrayname, “,”) should do.

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