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