Results 1 to 2 of 2

Thread: I'll give it a shot

  1. #1

    Thread Starter
    Addicted Member New2VB's Avatar
    Join Date
    Jun 2000
    Location
    Los Angeles
    Posts
    161

    Smile

    I'm a new guy so I hope this is helpful.

    As to the 2nd question:

    I think you want to look at the ListIndex property and use it to control the flow of your application, e.g., assuming a list and a button where the trigger is the button and the list is the modifier, you might have the following:

    Code:
     
    
    Private Sub Command1_Click()
        Select Case List1.ListIndex
            Case 0
                MsgBox "Item 1"
            Case 1
                MsgBox "Item 2"
            Case 2
                MsgBox "Item 3"
        End Select
    End Sub
    
    Private Sub Form_Load()
        List1.AddItem "First"
        List1.AddItem "Second"
        List1.AddItem "Third"
    End Sub
    Hope it helps.

    Regards
    NEW2VB

  2. #2

    Thread Starter
    Addicted Member New2VB's Avatar
    Join Date
    Jun 2000
    Location
    Los Angeles
    Posts
    161

    Thumbs down Whoops!

    Whoops! Sorry, this was intended as a reply to thread 22801.

    Apologies.
    New2VB

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