FireBird 2.0IBExpert DBMSEmbarcadero Rad Studio 2010 (C++) development environment Embarcadero Rad Studio 2010 (C++)
There is a table of goods, deletion, select, adding plow, but the update does not channel into any.
The product table has three fields - ID, Label, Price.BDE Development Tools
I put in the datamodule all the relevant components - IBDatabase in which the path to the database, IBTransaction , TIBQuerry - in which the select from the table, TDataSource and TIBStoredProc - which performs the procedure (ON each one).
Here, the data is displayed in DBGrid , in DBRID I select a line, click on the button that causes the record change form, there the two fields are filled with data from the line being changed .... Next, I change their values, click ОК which performs the following procedure
DMD->goods_U->ParamByName("label")->Value=Edit1->Text; DMD->goods_U->ParamByName("costforsingle")->Value=StrToFloat(Edit2->Text); WhereDMD - data module where BDE components are located,goods_U - component TIBStoredProc implements the update,LABEL and costforsingle respectively table fields.
SQL text on update:
BEGIN UPDATE GOODS SET LABEL = :LABEL, COSTFORSINGLE = :COSTFORSINGLE WHERE (label = :label); END The update does not work ... None.
Maybe, although it can not, but something is not right? Tell me pliz)