At 11:43 PM -0400 4/30/01, b_douglas wrote:
>In lingo,
>when you write a function can you get a list of arguments passed, so that
>if you have more than the number specified on the function you can use them?
>
>like the argument array in javascript?
>
Yes, check out: the paramCount() and param()
using these two you can accomplish what you want.
An alternative is always pass all arguments to a handler as a list.
Then use the count function and indexes to get at your parameters:
on SomeHandler listOfParameters
nParams = count(listOfParameters)
repeat with i = 1 to nParams
-- do whatever you want with listOfParameters[i]
end repeat
...
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]