carlos.ao
03-09-2006, 02:48 AM
Hello,
Is there any way to create a method with optional parameters in vbscript?
For example:
'Method:
Sub method1(param1, param2, param3)
'script
End Sub
'Calling the method:
'only passing one parameter, only param1 is necessary
method1 param1
'passing three parameters, because they are needed
method1 param1, param2, param3
thanks
Is there any way to create a method with optional parameters in vbscript?
For example:
'Method:
Sub method1(param1, param2, param3)
'script
End Sub
'Calling the method:
'only passing one parameter, only param1 is necessary
method1 param1
'passing three parameters, because they are needed
method1 param1, param2, param3
thanks