Results 1 to 5 of 5

Thread: [RESOLVED] Combobox Question about String and Integer

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Resolved [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
  •  



Click Here to Expand Forum to Full Width