|
-
Dec 21st, 2006, 05:16 PM
#1
Thread Starter
Hyperactive Member
[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?
8 gigs/ram (hey why not)
300 gig HD x2
Windows XP 64
-
Dec 21st, 2006, 05:50 PM
#2
Thread Starter
Hyperactive Member
Re: Splitting a string three ways??!
Well? It seems everyone is skipping my question! BUMP?!
8 gigs/ram (hey why not)
300 gig HD x2
Windows XP 64
-
Dec 21st, 2006, 05:56 PM
#3
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?
-
Dec 21st, 2006, 05:57 PM
#4
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|