Convert String into an Array to use in a For Each Activity


I have a string which looks like this:

How can I convert this into an array so that I can use the for loop to open each of these website links?

@Katie_Vooght Are the Values in Separate Lines?

When I use Write Text File and create a .txt file they are in seperate lines yes

@Katie_Vooght Then try using this expression:

strArray = Split(yourString,Environment.NewLine)

where strArray is an array of String type variable

Just tried that and I get a message saying 'Value of type ‘1-dimensional array of String’ cannot be converted to ‘String’.

@Katie_Vooght I guess you have declared strArray as a String, change it to Array of String

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