我在这里有这段代码:
Dim MasterIndex As String()()
Private Function Lookup(ByVal Search_path As String) As Integer
Dim i As Integer = 0
Do Until MasterIndex(i)(0) Is Nothing
If Search_path = MasterIndex(i)(0) Then
Return MasterIndex(i)(1)
End If
Loop
Return -1
End Function
这给了我在线Object reference not set to an instance of an object
上发生的错误Do Until
。为什么是这样?我怎样才能解决这个问题?