Formatting and printing a collection of strings

Hello Uipathers. I currently have a list of headlines added to my collection. I SUCCESSFULLY print my collection, but when I print my collection I want it to start EACH headline at a new line as opposed to bunching the headlines up as a paragraph. Is there a way to do that? I don’t see how I can incorporate +vbCR into my equation. Please let me know. Thanks

had you tried String.Join(Environment.NewLine, yourStringListVar)?

1 Like

Worked perfectly! Thank you.

Is there a way to add an additional line of space in between each headline?

I was able to reference each index i.e yourStringListvar(0), yourStringListvar(1) and add additional new lines by referencing each string individually. Thank you for all your help :slight_smile:

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