7,763
社区成员
发帖
与我相关
我的任务
分享
if o_in is nothing then set o_in = o_exists
Private Sub Command1_Click()
printXX 5
printXX 5, List2
End Sub
Function printXX(a As Integer, Optional lstobj As ListBox)
If lstobj Is Nothing Then Set lstobj = List1
Debug.Print lstobj.Name
End Function
function myPrint(a as integer,optional lstobj as listbox) as string
if lstobj is nothing then
myPrint="nothing"
else
'处理lstobj....
myPrint="ok"
end if
end function
function print ( a as integer,optional lstobj as listBox=me.list1)