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

Re: [SPAM] [amibroker] Initializing StaticVarText



PureBytes Links

Trading Reference Links

String Static variables behave different from Numeric Static Variables; they do not need to be initialized at the start of the code. They will always return "" (Empty string) when called for the first time. 


However if you want to re-initialize them to an empty string you indeed use StaticVarSetText ("isinitialized","") it will not insert the ticker name...


best regards,

herman


Thursday, March 8, 2007, 6:54:53 AM, you wrote:


>

Hello Herman

I understand how one initializes numeric  StaticVarSet variable as a clip from one of your programs

shows, where it's set to  0 "naught" .... 

 

Filter = Status("LastBarInTest");

SetOption("NoDefaultColumns",True);

WL1 = 0; //WL2 is selected with Filter;

// Calculate the RS1 for WL1 just once, when the first stock in the filter is tested

if(Status("StockNum") == 0 )  StaticVarSet("IsInitialized", 0);

if( StaticVarGet("IsInitialized") == 0 )

 

However, I'm looking for help on initializing text string static variables to blanks and can't seem to find documentation or a clip on this.   If I use  this approach. 

StaticVarSetText ("isinitialized","")  .....I think it inserts the current  ticker ...Name().

Best regards

JOE      

 

__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___