Loading values from the list variable to the clipboard

Hello, everybody,

I have a list variable (Of String) with two values, “1” and “2”.
Is it possible to copy all values of the list variable to the clipboard?

I use the activity “Set To Clipboard”, but with the activity “Write Line” I don’t get 1 and 2 as result, but “System.Collections.Generic.List`1[System.String]”.

@Kytyzow,

You can store the whole list as a string in the clipboard.

String.join(yourListVariable, ",")

Pass this in the set clipboard activity

Unbenannt

@Kytyzow,

Apologies, it should be

 String.Join(",", yourListVariable)
1 Like

It’s working, thanks!
Can I separate the values not with a comma, but with an Enter.

The

1,2

must go to

1
2

will be.

@Kytyzow,

Then use Environment.NewLine.ToCharArray for Enter or for a new line

1 Like

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