PDA

View Full Version : multiple variables in funcion calls


terek
08-18-2005, 12:39 PM
Id like to create a function, that can have any number of parameters, just like the Array constructor. how can it be done?




Thanks!


Terek

senocular
08-18-2005, 01:09 PM
in your function, arguments are provided as an array accessible through the "arguments" keyword. Use that to access your arguments instead of normal parameter names. Its length be be dependant on how many variables were passed

terek
08-22-2005, 12:28 PM
thank you!