Dim r As DataRow = dbDataset.Tables(0).NewRow() r("UserName") = userName r("Calculation_Date") = Date.Today() r("Car_Kg") = carbonCar r("Public_Transport_Kg") = carbonTransport r("Plane_Kg") = carbonPlane r("ATS_Kg") = carbonTotal dbDataset.Tables(0).Rows.Add(r)
DataRow r = dbDataset.Tables(0).NewRow(); r["UserName"] = userName; r["Calculation_Date"] = Date.Today(); r["Car_Kg"] = carbonCar; r["Public_Transport_Kg"] = carbonTransport; r["Plane_Kg"] = carbonPlane; r["ATS_Kg"] = carbonTotal; dbDataset.Tables(0).Rows.Add(r);
Tables(0)
Tables[0]
dbDataset.Tables[0]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)