Hello,
Is it possible to make a vbscript function that accepts an arbitrary number of arguments?
for example, in javascript you can make a function foo():
[tt]
function foo() {
for (x = 0; x < arguments.length; x++)
alert("argument[" + x + "] = " + arguments[x]);
}
[/tt]
and call it with any number of arguments:
[tt]
foo();
foo('a');
foo('do','re','mi');
[/tt]
is there a vbscript equivalent?
=========================================================
if (!succeed) try();
-jeff
Is it possible to make a vbscript function that accepts an arbitrary number of arguments?
for example, in javascript you can make a function foo():
[tt]
function foo() {
for (x = 0; x < arguments.length; x++)
alert("argument[" + x + "] = " + arguments[x]);
}
[/tt]
and call it with any number of arguments:
[tt]
foo();
foo('a');
foo('do','re','mi');
[/tt]
is there a vbscript equivalent?
=========================================================
if (!succeed) try();
-jeff