Results 1 to 2 of 2

Thread: Object Required Error with Listbox ???

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    Object Required Error with Listbox ???

    I have extracted the basic code that is making an inexplicable error.

    It looks like this:

    Dim strWhat As String
    Private Sub Command1_Click()
    For t = 1 To List1.ListCount
    MsgBox (List1.List(t - 1))
    strWhat = Listl.List(t - 1)
    Next t
    End Sub

    Private Sub Form_Load()
    List1.AddItem "Hello"
    End Sub


    put that on a form with a command button and a listbox
    and run it. see if you get 424 object required error

    I do.

    Please let me know what this is.
    Thanks
    Wengang
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    never mind. I see it too.
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

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