[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] passing a variable number of parameters to a user-defined function


  • To: "AmiBroker" <amibroker@xxxxxxxxxxxxxxx>
  • Subject: [amibroker] passing a variable number of parameters to a user-defined function
  • From: "Dave Merrill" <dmerrill@xxxxxxx>
  • Date: Wed, 20 Aug 2003 12:47:18 -0700

PureBytes Links

Trading Reference Links

can AFL reference parameters passed to a user-defined function by index, or
only by name? for example, can we refer to parameter[0] + parameter[1],
meaning the sum of the first 2 parameters, or something like that?

I'd like to write a function that can take a variable number of parameters,
and iterate over as many as are passed. this is possible in other languages
I work with, and I'm wondering if it's possible in AFL too.

if so, what's the syntax for it, and for getting the number of parameters
actually passed?

thanks,

Dave Merrill


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/