private double totalPrice(double r) { connection... command... command.commandtext = "select @gg = SUM(TotalPrice) FROM inventoryout"; command.parameters.addwithvalue("@gg", r); command.prepare(); cmd.executenonquery(); con.close() return r; }
command.commandtext = "select SUM(TotalPrice) FROM inventoryout"; int total = cmd.ExecuteScalar();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)