The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Optional Arguments
Posted: 27 Feb 07 4:25 PM
|
fiogf49gjkf0d Can you make sub or function routine arguments optional? and if so how? Thanks ML |
|
|
|
Re: Optional Arguments
Posted: 28 Feb 07 11:12 AM
|
fiogf49gjkf0d Sadly VB Script doesn't support optional arguments, overloads or any other cool way of working around this. The best you can do is pass nulls and then validate the parameters in your sub or function. |
|
|
| |
|
Re: Optional Arguments
Posted: 01 Mar 07 8:36 AM
|
fiogf49gjkf0d Great Article thanks Jay. I would recommend this read to everyone it goes through the null checking method and an array method for passing arguments. Both have limitations and these are covered as well. Thanks again Jay ML |
|
|
|