StaGetValueForLabel is used to retrieve the numerical value associated with text label in a given variable. To perform this operation in STATISTICA's COM library, simply call:

Programming Language


Visual Basic

'assuming "Spr" is a spreadsheet and TextVal is a Double
TextVal = Spr.TextLabelValue(1,"MALE",True)


'assuming "pSpreadsheet" is a pointer to a spreadsheet
double TextVal = pSpreadSheet->GetTextLabelValue(1,"MALE",true);

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.