我需要在VB .NET列表框部件显示的列表。

// 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(尺寸为整数)‘尺寸’作为整数未指定参数”。

我在做什么错在这里? 由于事先!

其他提示

有,呼叫功能COUNT():

List.Count    
scroll top