C_InsertDataRow

Call C_InsertDataRow to insert a new row in a table of indexed data.

An example of indexed data is the section data (line type, section length, target segment length etc.) for an OrcaFlex line. Calling C_InsertDataRow for section data names (e.g. "LineType", "Length", "TargetSegmentLength") results in the creation of a new section. The row can be inserted at any point within the table.

void C_InsertDataRow(

TOrcFxAPIHandle ObjectHandle,

LPCTSTR lpDataName,

int Index,

int *lpStatus

);

Parameters

ObjectHandle

The handle of the object which owns the data.

lpDataName (IN)

Points to a null-terminated string containing the name of the data item. This is the same name as used in OrcaFlex script files. To find what the name is for a particular data item you should select the data item on the OrcaFlex data form and press F7. For more information see the batch processing section of the OrcaFlex documentation.

Index (IN)

The new row will be inserted immediately before this row. If Index is equal to N+1, where N is the row count, then the row will be added after the last row in the table.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Unicode and ANSI

The Unicode function name is C_InsertDataRowW and the ANSI function name is C_InsertDataRowA.

See also

C_DataRequiresIndex, C_DeleteDataRow, C_GetDataRowCount, C_GetDataDouble, C_GetDataInteger, C_GetDataString, C_GetDataType, C_SetDataDouble, C_SetDataInteger, C_SetDataString.