StaGetNumVarLabels

StaGetNumVarLabels is used to retrieve the number of text labels for a given variable. To perform this operation in Statistica's COM library, simply call:  

Programming Language Example
Visual Basic 'assuming "Spr" is a spreadsheet and NumOfLabelVals is an Integer

NumOfLabelVals = Spr.NumberOfTextLabels(1)

C++ 'assuming "pSpreadsheet" is a pointer to a spreadsheet int NumOfLabelVals = pSpreadSheet->GetNumberOfTextLabels(1);

See also Migrating from StaDev to Statistica's COM architecture for a comprehensive list of all StaDev32 functions that can be migrated to Statistica's COM library.