CategoryFind
- search for category by name

Information / Categories
(AFL 3.0)


SYNTAX CategoryFind( ''name'', category )
RETURNS NUMBER
FUNCTION It allows to search for category by name. It takes category name and kind as parameters and returns INDEX (ordinal number).

For example it allows to find watch list index by name.

Supported categories:

  • categoryMarket
  • categoryGroup
  • categorySector
  • categoryIndustry
  • categoryWatchlist
  • categoryFavorite
  • categoryIndex
  • categoryGICS
  • categoryICB
The index (in the example below watch list number) can be later used in functions that need the index (like CategoryGetSymbols).
EXAMPLE wlnumber = CategoryFind("MyWatch List 1", categoryWatchlist );
mysymbols =
CategoryGetSymbols(categoryWatchlist, wlnumber );
SEE ALSO CategoryAddSymbol() function , CategoryGetName() function , CategoryGetSymbols() function , CategoryRemoveSymbol() function

References:

The CategoryFind function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference