C_SetDataRowCount

Call C_SetDataRowCount to set the row count for a column 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_SetDataRowCount for section data names (e.g. "LineType", "Length", "TargetSegmentLength") simply sets the number of sections in the line. In other words this is equivalent to calling C_SetDataInteger for the data name "NumberOfSections".

void C_SetDataRowCount(

TOrcFxAPIHandle ObjectHandle,

LPCTSTR lpDataName,

int RowCount,

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.

RowCount (IN)

The new row count.

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_SetDataRowCountW and the ANSI function name is C_SetDataRowCountA.

See also

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