Neat little script there... Its cleaner than the other example I found, but it looks like the possible parameters are hardcoded and limited to 3:
(...)
...is that the adaptation you spoke of?

part of


In fact I usuall use one, eventually 2 arguments, so I found really faster and enough for daily life to use only 3 parameters at max.
Otherwiwse you could use the paramcount and param(i) to populate a list of arguments, then 'depopulate' (pop?) this listwhen the timeout ends.



I guess the only options to make the call function totally dynamic is to dynamically build the call function string and use do (icky), or always pass a parameter that is a property list and just always deal with parameters that way.

That's because I use tons of propLists that 3 arguments are enough for me (indeed, a single propList is a clean way to send 10 or more parameters to a function, like a new() of a parent script, and it easily enable me to use default values for optional arguments)



cheers, séb [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]

Reply via email to