StrExtract
|
String manipulation |
SYNTAX | StrExtract( list, item, separator = ',' ) |
RETURNS | STRING |
FUNCTION | Extracts given item (substring) from comma-separated list of items.
item is a zero-based index of the item in the list (see also note below).
If no substring at given index is found then empty string is returned (""). Useful to retrive symbols from the list obtained via GetCategorySymbols function.
New in AmiBroker version 5.20:
New in AmiBroker version 5.90:
|
EXAMPLE | StrExtract( "MSFT,AAPL,AMD,INTC", 2 );//
will return AMD |
SEE ALSO | GETCATEGORYSYMBOLS() function |
The StrExtract function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.