|
-
Jun 9th, 2010, 02:02 PM
#1
Thread Starter
Member
[RESOLVED] Combobox Question about String and Integer
i have this code
Private Sub Form_Load()
Carrier.AddItem "MB496LE/A"
Carrier.ItemData(Carrier.NewIndex) = 80
End Sub
and here is my command button
Private Sub cmdDetermine_Click()
MsgBox "You have selected " & Carrier.List(Carrier.ListIndex) & "." & vbNewLine _
& "It has " & Carrier.ItemData(Carrier.ListIndex) & " Number.", _
vbInformation, _
"Carrier"
End Sub
after the equal sign i can only put numbers,
how can i make it if i want to put word instead of number?
somebody please help me?
Last edited by eyestrain; Jun 9th, 2010 at 02:08 PM.
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
|