I want to get color values from a string and assign them like
n1=red
n2=blue
n3=orange
And so on....
Sample code is given below. I don't want to write these, just assign values to n.
strArray = Split(red, blue, orange, blue)
Dim i
For i = 0 to Ubound(strArray)
response.write strArray(i) & "<br>"
Next
n1,n2,n3suggests that you should use a single variable which holds an array or dictionary rather than a bunch of separate variables.Split. Do you meanSplit("red, blue, orange, blue", ",")?