title: method or data member not found in vb6?
body: <p>This is my code </p>
  
  <pre><code>Sub filllistview()
    Dim itmX As ListItem
  
    Main
  
    rs.Open " select * from hatw order by id desc  ", dbconn, 3, 2
  
    If Not rs.EOF Then
      ListView1.ListItems.Clear
      rs.MoveFirst
  
      Do While Not rs.EOF
        Set itmX = ListView1.ListItems.Add(1, , rs!id)
        itmX.ListSubItems.Add , , rs!no_of_text
        itmX.ListSubItems.Add , , rs!date_of_text
        itmX.ListSubItems.Add , , rs!Title
        rs.MoveNext
      Loop
    Else
      ListView1.ListItems.Clear
    End If
  
    rs.Close
    Set rs = Nothing
  End Sub
  </code></pre>
  
  <p>When I hit <kbd>F5</kbd> this error occurs:</p>
  
  <blockquote>
    <p>method or data member not found</p>
  </blockquote>
  
  <p>The error highlights this statement:</p>
  
  <blockquote>
  <pre><code>ListView1.ListItems.Clear 
  </code></pre>
  </blockquote>