Vcl.DBCtrls.TDBEdit.EditCanModify
Delphi
function EditCanModify: Boolean; override;
C++
virtual bool __fastcall EditCanModify();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBEdit |
Description
Allows or disallows editing of the text depending on whether the dataset is in edit mode.
EditCanModify overrides the inherited method so that the control will only allow edits when the dataset is in edit mode. If the edit control should never allow edits, the ReadOnly property should be set.
Note: EditCanModify is a protected method. Applications cannot call it directly.