asp.net.ph

OleDbParameter.Scale Property

System.Data.OleDb Namespace   OleDbParameter Class


Sets or retrieves the number of decimal places of the parameter value.to which Value is resolved.

Syntax


Script OleDbParameter.Scale [ = bytes ]

Property Value


bytes The number of decimal places to which the Value of the OleDbParameter is resolved.

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

Implements

IDbDataParameter.Scale

Remarks

The Scale 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 | Precision   Size Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph