Is it possible to allow a parameter to be optionally passed to a method ? I'm currently passing a -1 if I want to ignore the parameter, but I'd prefer if I could pass nothing.
eg.
VB Code:
Function doSomething(param1 As Type1, Optional param2 As Type2) 'do something End Function




Reply With Quote