CRField::getInt
Previous  Index  Next

int getInt();

Return Value

Integer value stored in the field.

Description

Call this member function to retrieve field data in the current record represented as int. The value of the field will be converted to int value if possible. Throws an exception when type conversion is not possible.


Example

  int deptNo;
  deptNo = dataset.field("DeptNo").getInt();

See Also

CRField::setInt, CRField::isNull


CRField | Classes | OCL | Index