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

[amibroker] Re: Custom data types/Pointers in AFL



PureBytes Links

Trading Reference Links


Thomasz/other useres, may you help here? Thanks.

--- In amibroker@xxxxxxxxxxxxxxx, "the_short_fox" <theshortfox@xxxx> 
wrote:
> 
> Hi all,
> 
> 1) Is there any way to define custom data types (e.g, "records") 
in 
> AFL? I specifically refer to something of this kind:
> 
> Type CustomType=record
>   Value1: integer; 
>   Value2: float; 
> end;
> 
> Is it possible?
> 
> 2) Alternatively, how do I define pointers-like in AFL? Please 
view 
> the following example:
> 
> Procedure ChangeValues(x,y,z) {
> // defining new values of x,y,z
> x=1;
> y=2;
> z=3;
> }
> 
> Now, in the "main" code, we define the following:
> // "Main" code
> a=0;
> b=0;
> c=0;
> 
> // Now we call the procedure
> ChangeValues(a,b,c);
> 
> It is desired that after the "call" of the procedure, the 
variables 
> a,b,c will hold the values 1,2,3 , respectively. How can I achieve 
> this in AFL? It is important to add that a,b,c are arrays 
themselves.
> 
> I'd be grateful for any assistance with (1) and (2).
> 
> Regards,
> Short.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/