mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 20:40:20 +02:00
parent
5a9488b1fc
commit
afa2b90a5d
@ -1504,7 +1504,8 @@ procedure TDataSet.ClearFields;
|
||||
|
||||
|
||||
begin
|
||||
if not (State in dsEditModes) then DatabaseError(SNotEditing, Self);
|
||||
if not (State in dsEditModes) then
|
||||
DatabaseError(SNotEditing, Self);
|
||||
DataEvent(deCheckBrowseMode, 0);
|
||||
FreeFieldBuffers;
|
||||
InternalInitRecord(ActiveBuffer);
|
||||
@ -2134,8 +2135,6 @@ begin
|
||||
{$endif}
|
||||
// nothing found, invalidate buffer and bail out.
|
||||
ClearBuffers;
|
||||
// Make sure that the active record is 'empty', ie: that all fields are null
|
||||
InternalInitRecord(ActiveBuffer);
|
||||
DataEvent(deDatasetChange,0);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user