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

[amibroker] Re: Creating Subs



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 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: amibroker@xxxxxxxxxxxxxxx 
>   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
>



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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