Dynamicweb 8 Documentation
Rounding Class
Members  Example 

Represents the methods for rounding of sums.
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class Rounding 
[SerializableAttribute()] 
public class Rounding 
Example
class MyPage : System.Web.UI.Page
{
    public Dynamicweb.eCommerce.Prices.RoundingCollection GetRoundings(string RoundingID)
    {
        string SQL = "SELECT * FROM EcomRoundings WHERE RoundingID = '" + RoundingID + "'";
        Dynamicweb.eCommerce.Prices.Rounding objRounding = default(Dynamicweb.eCommerce.Prices.Rounding);
        IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb");
        Dynamicweb.eCommerce.Prices.RoundingCollection col = new Dynamicweb.eCommerce.Prices.RoundingCollection();

        while (objDataReader.Read())
        {
            objRounding = new Dynamicweb.eCommerce.Prices.Rounding(objDataReader);
            col.Add(objRounding);
        }

        objDataReader.Close();
        objDataReader.Dispose();

        return col;
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Prices.Rounding

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Rounding Members
Dynamicweb.eCommerce.Prices Namespace

Send Feedback