Results 1 to 4 of 4

Thread: combo box text

  1. #1

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294

    combo box text

    hello all,,,

    I was wondering how i can refernce the text that is selected in a combox or listbox.

    quick, simple easy, a waste of your time.

    thank you

  2. #2
    Fanatic Member THEROB's Avatar
    Join Date
    Oct 2000
    Location
    I'm cold and there are wolves after me
    Posts
    575
    Try this:

    Code:
    Private Sub Command1_Click()
    MsgBox Combo1.Text
    End Sub
    
    Private Sub Form_Load()
    Combo1.AddItem "hello"
    Combo1.AddItem "hello1"
    Combo1.AddItem "hello2"
    Combo1.AddItem "hello3"
    End Sub
    Is this what you looking for??
    Rob
    My secretary hopes that I will pay her, her landlord hopes that she will produce some rent, the Electricity Board hopes that he will settle their bill, and so on. I find it a wonderfully optimistic way of life. [Dirk Gently]

  3. #3

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    yup, ty

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    ..or without an extra control.
    Code:
    Private Sub Combo1_Click()
      MsgBox Combo1.Text
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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