Thank you for an example,
paweld.
It does not work with TCSVDataset.
"Applying updates is not supported by this TDataset descendent"
After removing ApplyUpdates:
"CSVDataset1: Must apply updates before refreshing data"
After removing Refresh:
Compiles successfully, application runs, data disappear from CSVDataset, but not from the file.
The same when using DBNavigator: records can be added, but not removed.
And Clear is defined as:
procedure TCustomBufDataset.Clear;
begin
Close;
FieldDefs.Clear;
Fields.Clear;
end;
So I expect it should clear the fields, too.