Hi -I think the big thing with static vars is that they can be shared, i.e. 
you can create a var in one chart and save it with StaticVarSet(), then you 
can access it from other charts or from AA with a call to StaticVarGet().

Steve

----- Original Message ----- 
From: "Pmxgs" <[email protected]>
To: <[email protected]>
Sent: Saturday, January 30, 2010 9:45 AM
Subject: [amibroker] What are static variables used for?


> Hello,
>
>  can someone please explain me what ate static variables used for?
>
>  In the help section it says that a static varable keeps its value in 
> memory until the end of the program.
> What's the difference between this and assigning a value to a normal 
> variable (which also doesn't change unless we assign another value to it). 
> For example: var=3; keeps this variable equal to 3 until we assign another 
> value to it.
>
>  I know I'm missing something obvious, but I'm learning how to program and 
> I can't understand this concept.
>
> thanks
>
>
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>
> 


Reply via email to