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

[amibroker] AFL syntax check executes the formula code?!?



PureBytes Links

Trading Reference Links

Hi,

I had just a strange behaviour in AB Formula Editor: When executing
"AFL syntax check" the code was not only checked for correct syntax
but directly executed, which resulted in the unintended deletion of
one of my market lists. Did you ever see same behaviour that "syntax
check" runs code?

I used the following code:

--- cut here ---

// define market list index
DestinationMarket = 4;

// remove all existing symbols from the market list
_TRACE("Removing Tickers from market number " +
NumToStr(DestinationMarket, 1.0)+":");
List = CategoryGetSymbols(categoryMarket, DestinationMarket);
for( i = 0; ( sym = StrExtract( List, i ) ) != ""; i++ ) 
{ 
  _TRACE(sym);
  CategoryRemoveSymbol(sym, categoryMarket, DestinationMarket);
} 
_TRACE("Removing Tickers from market completed.");

--- cut here ---

Thanks for your comments and best regards,
Markus




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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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