method-id button1_Click final private. procedure division using by value sender as object e as type System.EventArgs. EXEC SQL INSERT INTO NayreInventory (ItemCode ,ItemDescription ,Quantity ,Price ) VALUES ( :NayreInventory-ItemCode:NayreInventory-ItemCode-0001 ,:NayreInventory-ItemDescription:Col-2-MEDICOL ,:NayreInventory-Quantity:NayreInventory-Quantity-5 ,:NayreInventory-Price:NayreInventory-Price-150 ) END-EXEC. invoke type MessageBox::Show("1 RECORD HAS BEEN SUCCESSFULLY ADDED", "RESULT") end method.
try{ // your sql command and connection of database in c# }catch(Exception ee){ MessageBox.Show(ee.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)