我需要在VB .NET中的ListBox组件上显示一个列表。如何获得一个列表大小的VB VB?
// 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
我不熟悉VB.NET,这应该是一个非常简单的问题,但我需要帮助!
代码“resp.itemsList.GetLength”蓝色标有下划线且有读取工具提示:
“为参数的“公共职能对GetLength‘尺寸’(尺寸为整数)作为整数参数未指定” 。
我在这里做错了什么? 在此先感谢!
的感谢!这个伎俩! – gtludwig 2010-11-18 13:53:10