Hi - I think you want StaticVarSet() / StaticVarGet(). More info on these in 
the users guide.

Steve
----- Original Message ----- 
From: "whitneybroach" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, October 29, 2006 1:11 PM
Subject: [amibroker] Learning VarSet/VarGet ( was Re: Learning Composites )


> --- In [email protected], "Joe Landry" <[EMAIL PROTECTED]> wrote:
>>
>   There are persistent numbers and text
>> store AFL functions...
>> VarSet VarGet for numbers and text.  These I understand will persist
> from
>> routine to routine unless
>> you close Amibroker.
>
> -------------------------------
>
> Hmmm.  Try the following code on a watchlist with > 1 symbol.  I don't
> see evidence of persistence from VarSet/VarGet.
>
> ///////////////////////////////
> Buy=Sell=0;
> Filter=Status("barinrange");
> AddColumn( C, "Close" );
> fi = "%1.0f";
> Trace = True;
> Vname = "TestVar";
>
> if ( i = VarGet( Vname ) )
> {
> _TRACE( "got i = " + StrFormat( fi, i ) );
> }
> else
> {
> _TRACE( "did not get a value for i from varget" );
> VarSet( Vname, 1 );
> }
> ///////////////////////////////
>
>
>
>
> 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
>
>
>
>
> 




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:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

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

Reply via email to