C_GetDataType

There are 6 functions for getting and setting data: C_GetDataDouble, C_GetDataInteger, C_GetDataString, C_SetDataDouble, C_SetDataInteger and C_SetDataString. In order to know which to call you must first call C_GetDataType. The value returned in DataType determines which of these functions to call.

void C_GetDataType(

TOrcFxAPIHandle ObjectHandle,

LPCTSTR lpDataName,

int *lpDataType,

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.

lpDataType (OUT)

Points to a variable which receives the data type. Can be one of the following values:

Note: For backwards compatibility reasons the dtBoolean data type is only returned if the EnableBooleanDataType policy has been activated. If this policy is not activated then boolean data is treated as being of dtString type with possible values Yes and No.

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_GetDataTypeW and the ANSI function name is C_GetDataTypeA.

See also

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