C_SetDataDouble

Call C_SetDataDouble to set the value of a floating point data item.

void C_SetDataDouble(

TOrcFxAPIHandle ObjectHandle,

LPCTSTR lpDataName,

int Index,

double Data,

int *lpStatus

);

Parameters

ObjectHandle (IN)

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)

If the data item is part of a table then this is the row number of the table. The first row in the table is always 1. If the data item is not part of a table then this parameter is ignored. You can use C_DataRequiresIndex to determine whether or not an index is required.

Data (IN)

The new value of the data item.

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_SetDataDoubleW and the ANSI function name is C_SetDataDoubleA.

See also

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