title: how to get a list size em VB .NET?
body: <p>I need to display a list on a ListBox component in VB .NET.</p>
  
  <pre><code>// params is a string representing a path, empty means root folder
  params.itemsPath = ""
  
  // resp is a response object, here it is a String[]
  resp = myAPI.browseTags(params)
  
  Dim listSize As Integer
  listSize = resp.itemsList.GetLength
  
  Dim i As Integer
  For i = 0 To listSize
      ListBox1.Items.Add(resp.itemsList(i).itemName)
  Next
  </code></pre>
  
  <p>I'm not familiar with VB .NET and this should be a very simple issue, but I need help!</p>
  
  <p>The code 'resp.itemsList.GetLength' is underlined in blue and there's a tooltip that reads:</p>
  
  <p>"Argument not specified for parameter 'dimension' of 'Public Function GetLength(dimension As Integer) As Integer".</p>
  
  <p>What am I doing wrong here?
  Thanks in advance!</p>