VB.NET 里 如何将数组作为参数 传递给函数?

2025-03-04 17:30:36
推荐回答(1个)
回答1:

两个参数:一个是数组名,一个是传递的长度
Function thename(ByVal imgFrom As Image) As String
thename = imgFrom.Name
End Function
Private Sub Image1_Click()
MsgBox thename(Image1)
End Sub