Gets the value of the specified column as a Decimal object.
[Visual Basic]
Public Function GetDecimal( _
ByVal i As Integer _
) As Decimal
[C#]
public decimal GetDecimal(
int i
);
[C++]
public: Decimal GetDecimal(
int i
);
[JScript]
public function GetDecimal(
i : int
) : Decimal;
The value of the specified column as a Decimal object.
| Exception type | Condition |
|---|---|
| InvalidCastException | The specified cast is not valid. |
| DB2Exception | Invalid conversion. |
No conversions are performed. The data to be retrieved must be of DB2Type.Decimal.
| DB2®Type Data Type | DB2 Data Type | Informix® Data Type |
|---|---|---|
| Decimal | DECIMAL | MONEY |
Call IsDBNull to check for null values before calling this method.