DB2UpdatableRecord.GetDecimal Method
Gets the value of the specified column as a decimal.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[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;
Parameters
- i
- The zero-based column ordinal.
Return value
The value of the specified column as a Decimal object.
Exceptions
Exception type | Condition |
---|---|
InvalidCastException | The specified cast is not valid. |
DB2Exception | Invalid conversion. |
Remarks
No conversions are performed. The data to be retrieved must be of DB2Type.Decimal.
The following
table describes the mapping between the return object data type and
the data server data type.
DB2®Type Data Type | Db2® Data Type | Informix® Data Type |
---|---|---|
Decimal | DECIMAL | MONEY |
Call IsDBNull to check for null values before calling this method.