VBScript – Writing Func/Sub that can take 0 or 1 args?

Home Forums Scripting General Scripting VBScript – Writing Func/Sub that can take 0 or 1 args?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    humbletech99
    Member
    #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?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.