[求助] 请高手帮我看看这个二维数组
Public Function GetSubNodes(IntNodeID, byref cv,Field,Retrun)
If IsNull(IntNodeID) or IsNull(Field) or IsNull(Retrun) Then Exit Function
Dim i,str
For i = 0 To UBound(cv,2)
If CLng(IntNodeID) = CLng(cv(Field,i)) Then
if Retrun=-1 then
str = str & i &","
else
str = str & cv(Retrun,i)&","
end if
If Clng(getFirstSub(cv(0,i),cv,Field,0))>0 Then
str = str & GetSubNodes(cv(0,i),cv,Field,Retrun)
End If
End If
Next
GetSubNodes=str
End Function
请各位高手帮我看看啊。CLng(cv(Field,i)) 是什么意思啊。里面的cv不是数组吗?为什么还cv(Field,i)啊
PS:
IntNodeID参数是0
byref cv参数是二维数组
Field参数是2
Retrun参数是-1
GetSubNodes(0,arrMenu,2,-1)