SimpleDataSet1->DataSet->CommandText="insert into test values(:a)";
SimpleDataSet1->Params->ParamByName("a")->AsAnsiString=Edit1->Text;
SimpleDataSet1->Execute();
InternalDataSet: Cannot preform this operation on an open dataset. |
SimpleDataSet1->DataSet->Close();
SimpleDataSet1->DataSet->CommandText="insert into przyklad(ID1) values(:ID1)";
SimpleDataSet1->DataSet->ParamByName("ID1")->Value=2;
SimpleDataSet1->DataSet->Prepared=true;
SimpleDataSet1->Execute();
Table unkown |
DataModule2->SimpleDataSet1->DataSet->Close();
DataModule2->SimpleDataSet1->DataSet->CommandText="insert into test(ID,DYSTANS,INFO) values(:ID,:DYSTANS,:INFO)";
DataModule2->SimpleDataSet1->DataSet->ParamByName("ID")->Value=StrToInt(Edit1->Text);
DataModule2->SimpleDataSet1->DataSet->ParamByName("DYSTANS")->Value=StrToFloat(Edit2->Text);
DataModule2->SimpleDataSet1->DataSet->ParamByName("INFO")->Value=Memo1->Lines->Text;
DataModule2->SimpleDataSet1->Execute();
Użytkownicy przeglądający ten dział: Brak zalogowanych użytkowników i 2 gości