|
-
May 5th, 2001, 07:31 PM
#1
Thread Starter
New Member
needing more detailed instructions!!! urgently
situation:
I have a txtbox that will have several words inputed by the user
Problem:
I know how to find the first space(" ")inbetwn the first two words, how can I find the rest of them so that I can evaluate each word seperately?
I got one repsonse but I need a bit more detail, just learning VB>
thnx
-
May 5th, 2001, 07:37 PM
#2
PowerPoster
Try this:
Code:
Private Sub Command1_Click()
Dim strList As Variant
strList = Split(Text1.Text, vbCrLf)
For Each varlist In strList
List1.AddItem varlist
Next
End Sub
-
May 5th, 2001, 09:50 PM
#3
Conquistador
just a little correction:
Private Sub Command1_Click()
Dim strList As Variant
strList = Split(Text1.Text, " ")
For Each varlist In strList
List1.AddItem varlist
Next
End Sub
As he is trying to parse the space, not the line feed (vbCRLF)
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
|