asp.net.ph

OleDbParameter.Precision Property

System.Data.OleDb Namespace   OleDbParameter Class


Sets or retrieves the maximum number of digits for the parameter value.

Syntax


Script OleDbParameter.Precision [ = bytes ]

Property Value


bytes The maximum number of digits used to represent the Value of the OleDbParameter.

The property is read/write with a default value of 0.

Implements

IDbDataParameter.Precision

Remarks

The Precision property is only used for numeric and decimal input parameters.

Example

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;
}
  C# VB

See Also

OleDbParameter Members   Scale   Size Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note