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

Re: [amibroker] Procedure Help Please



PureBytes Links

Trading Reference Links

A functiopn / procedure can only return ONE  value.

In order to return more than one value use global variables
A = B = C = D = 0;

function ABCD(A,B,C,D)
{

//
Update E = A ... etc
}
  ----- Original Message ----- 
  From: David Jennings 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, December 21, 2006 11:09 AM
  Subject: [amibroker] Procedure Help Please


  I have a procedure with 4 input arrays e.g.

  Procedure ABCD(A,B,C,D);
  {
  ABCD updated here ...
  }

  Within the procedure, I update A, B, C, & D. 
  How do I ensure I get the updated values when I reference them in the code after the procedure is called. 


  Many Thanks

  DJ
   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.26/598 - Release Date: 12/22/2006 3:22 PM