StaSetVarFormat

StaSetVarFormat is used to set the formatting of a variable within a spreadsheet. To perform this operation in Statistica's COM library, simply call:  

Programming Language Example
Visual Basic 'assuming "Spr" is a spreadsheet Spr.VariableFormatString(1) = "$0.00"
C++ 'assuming "pSpreadsheet" is a pointer to a spreadsheet pSpreadSheet->PutVariableFormatString(1,"$0.00");

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.