VBScript – Writing Func/Sub that can take 0 or 1 args? Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › General Scripting › VBScript – Writing Func/Sub that can take 0 or 1 args? This topic has 3 replies, 3 voices, and was last updated 12 years, 6 months ago by Geertm. Viewing 1 post (of 1 total) Author Posts humbletech99Member Jan 30, 2008 at 9:58 am #130057 I was wondering if there was some way that I can write a function or sub that can be called with or without arguments? I specifically want to be able to write a func/sub that can either accept 1 or 0 arguments and then handle that inside the func/sub to respond differently. I suspect that the best I can do is pass in an empty string, but I’d be happy to hear anyone’s wisdom on this? Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.