StaSetVarLongName

StaSetVarLongName is used to set the long name or function 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.VariableLongName(3) = "=v1*v2"
C++ 'assuming "pSpreadsheet" is a pointer to a spreadsheet pSpreadSheet->PutVariableLongName(3,"=v1*v2");

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.