[RESOLVED] Splitting a string three ways??!
I have this code to split a string into two halves -
VB Code:
AccountList.ListIndex = 0
emailToUseT.Text = AccountList.List(0)
Temp = Split(emailToUseT.Text, ";")
emailT.Text = Temp(0)
passwordT.Text = Temp(1)
;)
Assume I have this text in a form:
hello{sep}goodbye{sep}webstring
or
hello;goodbye;webstring
Would obviously turn into:
hello
goodbye
webstring
How would I split three strings like this?
Re: Splitting a string three ways??!
Well? It seems everyone is skipping my question! :( BUMP?!
Re: Splitting a string three ways??!
Your question does not make much sense, atleast to me. You ask to split three strings like you've shown above, which is straightforward and easy to do. So you should format your question better.
Do you want all the three strings to have their result in one string array? Or what you actually want to have as an end result?
(Also, bumping this early isn't very good habit, sometimes question gets answered several hours later on. You should wait atleast several hours.)
Edit!
And now it is resolved?
Re: [RESOLVED] Splitting a string three ways??!
use Temp(2) for the webstring.
VB Code:
next = temp(2)
next2 = temp(3)
next3 = temp(4)
and so on...