How can we convert string into a list/ Array?

I’ve input as below mentioned and these are SAP systems…but I want to make all these into a list of array which ever is best to work with…

Input: VD1, QO4, TO2, VQ1, QO1, TO1
Output should be a array/list of:
VD1
QO4
TO2
VQ1
QO1
TO1

So that I can further work on each system.

grafik

Along with trimming:
grafik

YourString.Split({","c}, StringSplitOptions.RemoveEmptyEntries).select(Function (x) x.trim).tolist

1 Like

Hello @anjasing
Here we go

1 Like

Thank you so much…for my process array would be better…

Thank you…

in such case we just change from toList to toArray:

1 Like

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