你可以在类函数中定义:(node)
dim a() as string
dim n as integer
Public Sub ProductLst(lstpro() As String)
a = lstpro
End Sub
然后调用:
Dim anode as node
Set anode = new node
anode.n = 5
dim aaa() as string
redim aaa(n) as string
call ProductLst(aaa() As String)
print anode.n