【发布时间】:2011-05-12 00:49:12
【问题描述】:
我需要在 VB .NET 中的 ListBox 组件上显示一个列表。
// 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”带有蓝色下划线,并且有一个工具提示:
“没有为'Public Function GetLength(dimension As Integer) As Integer”的参数'dimension'指定参数。
我在这里做错了什么? 提前致谢!
【问题讨论】:
标签: list listbox size vb.net-2010