Colito008
Colito008
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
kekw
21 replies
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
would you believe me the error was on the if statement "if (cancelOrder.cboInventory.Text == "yes" && cancelOrder.CancelQtyValue > 0)" on the sense that the combo box had alternatives "Yes" and "No" so for the program it would allways be no cause of the uppercase Y
21 replies
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
then what should i do then?
21 replies
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
to be more specific i have multiple forms of the app this is just one of them
21 replies
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
honestly i have no idead what is that
21 replies
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
nah its schoolwork
21 replies
CC#
Created by Colito008 on 12/7/2023 in #help
Need help to detect error in code for POS system
if (cancelOrder.cboInventory.Text == "yes" && cancelOrder.CancelQtyValue > 0) { dbcon.ExecuteQuery("UPDATE tbProduct SET qty = qty + " + cancelOrder.CancelQtyValue + " where pcode= '" + cancelOrder.txtPcode.Text + "'"); } this piece of code does not update to the products table
21 replies