joelwenzel
Programmer
- Jun 28, 2002
- 448
In some languages, it is possible to get an argument array of a function and access parameters through the array. Is it possible to access this array in vbscript?
Perhaps there are other solutions to my problem. I want to create a function that can be called with a different number of variables each time it is called. In C, function overload could solve my problem. In vbscript, I could pass an array as the argument but it would have to contain all the same type (wouldn't it? I want to pass a recordset, string, and ints).
call foobar(string1, recordset1)
call foobar(string1)
and have the function handle the data differently depending on the number of parameters
Perhaps there are other solutions to my problem. I want to create a function that can be called with a different number of variables each time it is called. In C, function overload could solve my problem. In vbscript, I could pass an array as the argument but it would have to contain all the same type (wouldn't it? I want to pass a recordset, string, and ints).
call foobar(string1, recordset1)
call foobar(string1)
and have the function handle the data differently depending on the number of parameters