Vcl.DBCtrls.TDBLookupControl.CanModify

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanModify: Boolean; virtual;

C++

virtual bool __fastcall CanModify(void);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBLookupControl

Description

Indicates whether the lookup control has rights to modify data.

CanModify is used internally to determine whether the lookup control is able to modify the value of the field specified by the DataField property.

CanModify returns True if:

  • The ReadOnly property is false.
  • The ListActive property is true.
  • The DataField property refers to a field that can be modified.

Otherwise, CanModify returns false.

See Also