|
-
May 13th, 2001, 08:41 AM
#1
Thread Starter
Hyperactive Member
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
-
May 13th, 2001, 10:13 AM
#2
Fanatic Member
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]
-
May 13th, 2001, 03:33 PM
#3
Thread Starter
Hyperactive Member
-
May 13th, 2001, 03:42 PM
#4
_______
<?>
..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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|