Migrating from StaDev to Statistica's COM Architecture

The Statistica Development Environment is an API in Statistica version 5.x that exposes numerous functions within Statistica to software engineers. The StaDev32 environment is still supported for backward compatibility, although it is recommended that Statistica's object model should be used for new projects. One reason for this is because Statistica utilizes cutting-edge COM technology to fully expose all of its functionality to developers, whereas StaDev32 only exposes a small number of functions. Secondly, StaDev32 was designed for the Statistica 5.x environment and cannot take advantage of Statistica's enhanced functionality. Finally, because Statistica is of COM-based design, any COM-compliant language can access Statistica's new automation interface; StaDev32 is accessible only through Visual C++, Visual Basic, Delphi, and FORTRAN.

The following are StaDev32 functions that can be converted to Statistica's COM library:
 

Functions

Description

StaAddCases

Adds cases to a spreadsheet.

StaAddLabel

Adds a text label to a given variable.

StaAddVars

Adds variables to a spreadsheet.

StaCloseFile

Closes a file in Statistica.

StaCreateFile

Creates a Statistica data file.

StaDeleteCases

Deletes cases from a spreadsheet.

StaDeleteLabel

Removes labels associated with a specified text value for a given variable.

StaDeleteLabelForValue

Removes labels associated with a specified numeric value for a given variable.

StaDeleteVars

Deletes variables from a spreadsheet.

StaGetAllMD

Retrieves an array of missing data values for all variables.

StaGetCaseData

Retrieves the values of a spreadsheet's case.

StaGetCaseName

Sets the case name within of a spreadsheet.

StaGetCaseNameLength

Retrieves the case name length of a spreadsheet.

StaGetData

Retrieves the value of a spreadsheet's cell.

StaGetFileHeader

Retrieves the header of a spreadsheet.

StaGetLabelForValue

Retrieves the text label associated with specified value in a given variable.

StaGetLongLabelForValue

Retrieves the text label description associated with specified value in a given variable.

StaGetNCases

Retrieves the number of cases within a spreadsheet.

StaGetNumVarLabels

Retrieves the number of text labels for a given variable.

StaGetNVars

Retrieves the number of variables within a spreadsheet.

StaGetValueForLabel

Retrieves the numerical value associated with text label in a given variable.

StaGetVarFormat

Retrieves the formatting of a variable within a spreadsheet.

StaGetVarLongName

Retrieves the long name or function of a variable within a spreadsheet.

StaGetVarMD

Retrieves the missing data value of a variable within a spreadsheet.

StaGetVarName

Retrieves the name of a variable within a spreadsheet.

StaOpenFile

Opens a specified file in Statistica.

StaSetCaseData

Sets the values of a spreadsheet's case.

StaSetCaseName

Sets the case name within of a spreadsheet.

StaSetCaseNameLength

Sets the case name length of a spreadsheet.

StaSetData

Sets the value of a spreadsheet's cell.

StaSetFileHeader

Sets the header of a spreadsheet.

StaSetVarFormat

Sets the formatting of a variable within a spreadsheet.

StaSetVarLongName

Sets the long name or function of a variable within a spreadsheet.

StaSetVarMD

Sets the missing data value of a variable within a spreadsheet.

StaSetVarName

Sets the name of a variable within a spreadsheet.