System.Data.OleDb Namespace OleDbParameter Class
Sets or retrieves the number of decimal places of the parameter value.to which Value is resolved.
Script |
OleDbParameter.Scale [ = bytes ] |
The property is read/write with a default value of 0.
IDbDataParameter.Scale
The Scale property is only used for numeric and decimal input parameters.
The following example initializes an OleDbParameter and sets some of its properties.
public void CreateOleDbParameter ( ) {
OleDbParameter myParam = new OleDbParameter ( "Specs", OleDbType.Decimal );
myParam.Value = 3.1416;
myParam.Precision = 8;
myParam.Scale = 4;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Specs", OleDbType.Decimal )
myParam.Value = 3.1416
myParam.Precision = 8
myParam.Scale = 4
End Sub |
|
C# |
VB |
OleDbParameter Members
| Precision Size