Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Warum funktioniert Undo nicht TClientDataSet.EmptyDataSet ? (https://www.delphipraxis.net/64944-warum-funktioniert-undo-nicht-tclientdataset-emptydataset.html)

madina 10. Mär 2006 08:51


Warum funktioniert Undo nicht TClientDataSet.EmptyDataSet ?
 
Hallo an alle,

// clone TClientDataSet
ich habe TMainForm.TClientDataSet1 und bearbeite seine Daten z.B. (lösche, einfüge od ändere) über TForm2.TClientDataSet2.CloneCursor(TMainForm.TClie ntDataSet1, true); in TForm2.

// ich lösche alle oder ein letzter vorh. DS:
iBeforeChanges:= TForm2.TClientDataSet2.SavePoint;
TForm2.TClientDataSet2.EmptyDataSet;

// undo
TForm2.TClientDataSet2.SavePoint:= iBeforeChanges;

// warum werden nach Undo alle oder der einziger vorh. DS bei CloneCursor nicht zurückgeholt ??????

mfg


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz