How to define a Function in VBS with Default Valued parameter?
I had tried many different ways, nothing seems working
Function Calculate(operator1 = 20, operator2 = 30)
' logic goes here
End Function
Function Calculate(Optional ByVal operator1 As Int = 20, Optional ByVal operator2 As Int = 30)
' logic goes here
End Function