Results 1 to 3 of 3

Thread: needing more detailed instructions!!! urgently

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    8

    Exclamation 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

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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
  •  



Click Here to Expand Forum to Full Width