mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-25 10:40:38 +01:00
added checks for TDBMemo if write is possible
git-svn-id: trunk@8283 -
This commit is contained in:
parent
8e22800348
commit
61d3fe6aa4
@ -1,4 +1,4 @@
|
||||
{%MainUnit ../dbctrls.pas}
|
||||
{%MainUnit ../dbctrls.pp}
|
||||
{
|
||||
*****************************************************************************
|
||||
* *
|
||||
@ -109,6 +109,9 @@ end;
|
||||
|
||||
procedure TDBMemo.UpdateData(Sender: TObject);
|
||||
begin
|
||||
if not FDBMemoLoaded then exit;
|
||||
if FDataLink=nil then exit;
|
||||
if not FDataLink.CanModify then exit;
|
||||
FDataLink.Field.AsString:=Text;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user