Can anyone help me with this problem I've found when trying to use the AFL 
function CategoryGetName()?

When I use the parameter categoryIndustry, to get a list of the industry 
symbols (MG111, MG112, etc), the list contains only one symbol.

// Create string containing valid MG ticker symbols
for( i = 0, SymbolList = "", NumSymbols = 0;
     ( CurrentSymbol = CategoryGetName( categoryIndustry, i ) ) != "";
     i++ )
{
  if( SetForeign( CurrentSymbol ) )
  {
    SymbolList = SymbolList + WriteIf(NumSymbols, ",", "") + 
        CurrentSymbol;
    RestorePriceArrays();
    NumSymbols++;
  }
}

Title = WriteVal(NumSymbols, 1.0) + ": " + SymbolList;

The displayed title is

1: Gold

Can anyone help?

Many thanks,
Paul

Reply via email to