PureBytes Links
Trading Reference Links
|
You could also return an Array jk[] that holds several values. jk[0] jk[1]
etc.
h
-----Original Message-----
From: nkis22 [mailto:nkishor@xxxxxxxxxx]
Sent: May 22, 2003 9:17 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Function Question
I know about global and local definitions.
What I don't know is how to say it on the
return line.
the fnction calculates j and k.
return j ; // returns j
return k ; // returns k
I want to return both j and k
return j, k; //doesn't work
nand
--- In amibroker@xxxxxxxxxxxxxxx, "Herman vandenBergen" <psytek@xxxx>
wrote:
> You can use Global variables (declared outside the function) and
define them
> inside the function, to return as many variables as you like. Look
up Global
> and Local variables in the readme.
>
> herman
>
> -----Original Message-----
> From: nkis22 [mailto:nkishor@x...]
> Sent: May 22, 2003 7:23 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Function Question
>
>
> Can a function return more than one value?
>
> return j;
>
> Can I return j and well as k?
> How to code it, if possible?
>
> return j, k; doesn't work.
>
> nand
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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/
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/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/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/
|