ov2015
9 years agoVisitor
Wrong number of function parameters
Hi
I have a function
I need to call this function from various places. When I have a call as below, I don't have a problem
I would like to know if we can define the second parameter as an optional parameters, so I can use the function with only one parameter like
Currently, I am getting error "Wrong number of function parameters" while using only 1 parameter
I have a function
Function showScreen(sc1 As Object, sc2 As Object)
...
if sc2 <> invalid then
' do something here
end if
...
End Function
I need to call this function from various places. When I have a call as below, I don't have a problem
showScreen(sc1, sc2)
I would like to know if we can define the second parameter as an optional parameters, so I can use the function with only one parameter like
showScreen(sc1)
Currently, I am getting error "Wrong number of function parameters" while using only 1 parameter