We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
procedure TForm.EditBtnClick(Sender:TObject); begin // Mark is form variable. It's private Mark = cdsMain.GetBookmark; // blabalbal . . . end; procedure TForm.OkBtnClick(Sender:TObject); var mistakes: Integer; begin //Validation stuff and transaction control //removed to not clutter the code If cdsMain.ChangeCount <> 0 then mistakes := cdsMain.AppyUpdates(-1); cdsMain.Refresh; try cdsMain.GotoBookmark(Mark); // Yes, I know I would have to call FreeBookmark // but I'm just reproducing except cdsMain.First; end; end;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Delphi Mdi application Child forms get behind control||7||365|
|PHP preg_replace code convert to Delphi||14||98|
|Typecasting TBytes to Integer in Delphi XE8||2||69|
|Can Live bindings change TGrid Cell Colour ?||1||64|
Join the community of 500,000 technology professionals and ask your questions.