Is there ways to create optional arguments to functions in vb script?

Rob Segal picture Rob Segal · Dec 11, 2009 · Viewed 36.5k times · Source

Is there ways to create optional arguments to functions in vb script allowing you to write functions something like...

myFunc("happy")
myFunc("happy", 1, 2, 3)
myFunc("happy", 1)
etc.

Answer

Daniel Kreiseder picture Daniel Kreiseder · Dec 11, 2009

The optional keyword (like in VB6) is not allowed in vbscript

maybe this helps: http://www.4guysfromrolla.com/webtech/071801-1.shtml