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!]

        • ... Bjarne Nyquist
        • ... g r i m m w e r k s
        • ... Bjarne Nyquist
        • ... g r i m m w e r k s
        • ... g r i m m w e r k s
        • ... g r i m m w e r k s
        • ... Irv Kalb
        • ... g r i m m w e r k s
      • ... Andreas Gaunitz
        • ... b_douglas
    • &l... Irv Kalb
  • <lin... b_douglas
    • &l... Guran Alfven, Industriinformation AB, +46 31 690490, +46 515 81090
      • ... Andreas Gaunitz
      • ... Andreas Gaunitz
        • ... Kerry Thompson
  • <lin... Stephen Recker
    • Re... Colin Holgate
      • ... Stephen Recker
  • <lin... b_douglas
  • <lin... Nikaj Wiggers

Reply via email to