Click to See Complete Forum and Search --> : <textarea> problems!


cusimar9
06-16-2005, 02:48 PM
I'm sure this is fairly straightforward but I can't for the life of me figure it out

I have a list of urls in a textarea and I want to be able to loop through them or load them all into an array

I've tried using the Split method but the entries are seperated by a carriage return and for some reason VbCrLf won't work as a valid seperator

buntine
06-16-2005, 03:34 PM
It may be a bit of a workaround, but try replacing VbCrLf with a page break (or comma) and use that to split the string.

strWholeString = Replace(strWholeString, vbCrLf, "<br />")
strWholeString = Split(strWholeString, "<br />")

Regards.

cusimar9
06-17-2005, 09:33 AM
I got it to work... I was trying to use a fixed size array instead of just a Dim variable