Create a Function by:

Function MyFun(arg1, arg2, arg3) //Pass data into the function with args;
{

Global Value1; // use Global to return multiple results;
Global Value2;

//  Function code here;

Return Value1;  // use Return if you have just one result;

}

//Call the function by;
MyFun(Param1, Param2, Param3);



--- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote:
>
> Sure. Subroutine is just a function that does not return anything
> http://www.amibroker.com/guide/keyword/function.html
> http://www.amibroker.com/guide/keyword/procedure.html
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
>   ----- Original Message ----- 
>   From: KBH 
>   To: [email protected] 
>   Sent: Friday, March 21, 2008 5:37 PM
>   Subject: [amibroker] Creating Subs
> 
> 
>   I was wondering, most of my limited coding exp. is with Visual
Basic. Can I create sub routines in AFL?
> 
>   If I can do that then I could create my price lines very easily.
> 
>    
> 
>   Maybe that won't work either.
> 
>    
> 
>   Awhile back Graham posted something on writing text back and forth
In AFL maybe that's the way to do it.
> 
>    
> 
>   Nothing like being lost.
> 
>    
> 
>    
> 
>    
> 
>    
> 
>   No virus found in this outgoing message.
>   Checked by AVG.
>   Version: 7.5.519 / Virus Database: 269.21.7/1336 - Release Date:
3/20/2008 9:48 AM
>


Reply via email to