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

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



PureBytes Links

Trading Reference Links

Hello,

1. No
2. No

You can however use GLOBAL keyword to define global 
variables that will be modified inside procedure/function.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "the_short_fox" <theshortfox@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, February 22, 2005 5:21 AM
Subject: [amibroker] Re: Custom data types/Pointers in AFL


> 
> 
> 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.
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/