isDpTypeStruct()

Checks if a datapoint type is a struct type.

Synopsis

boolisDpTypeStruct(anytypetype);

Parameters

Parameter Meaning
type The datapoint type. Either int DPE type or string data point.

Return value

The function returns TRUE if a datapoint type is a struct type.

Error

Description

Checks if a datapoint type is a struct type.

Example

The following example checks if the datapoint type of the datapoint "_mp_LABOR_ANALOG." is a struct type.

main()
{
  string t = "_mp_LABOR_ANALOG.";
  bool rV;
  rV=isDpTypeStruct(t);
  DebugN("Struct type?:",rV);
}

Assignment

Datapoint function

Availability

CTRL