Can I create a sub with a variable number of paramters?
Posted on 2005-04-15
I have a hash that is based on the CollectionBase class:
public class myclass
private the_hash as new hashtable ' Internal storage
public sub add( byval thing as whatever, byval name as string)
So to use it I say eg
dim h as new myclass
What I would like to do is have a constructor with a variable number of parameters that I could use like this:
dim h as new myclass(thing1, thing2, thing3)
Can I do this?