Hi everyone this is my first post. I'm fairly new to programming. I can't find answer to my problem from the book I purchased on mastering VB express edition so I thought I'd ask here.
and I have this;
dim array() as string array(0) = "human hair found everywhere" array(1) = " I really love pringles"
'I can do this on the first element dim wordSplit() as string = split(array(0), " ")
msgbox(wordSplit(1)) 'this would display "hair"
msgbox(wordSplit(2)) 'this would display "found"
'the next is where the problem occurs 'how can I do the same thing to the second element 'I tried these but they won't work ' dim wordSplit() as string = split(array(1), " ") <--- gives nothing ' dim wordSplit() as string = split(array(1), " ") <--- gives nothing ' dim wordSplit() as string = split(array(1), "") <--- gives " I really love pringles" ' dim wordSplit() as string = split(array(0), vbTab) <--- gives " I really love pringles"
so now I'm not really sure if this is doable or not. I hope someone can help me with this thank you.
Visual Studio Express Editions12
|