FireDAC.Stan.Option.TFDUpdateOptions.CheckUpdatable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CheckUpdatable: Boolean read GetCheckUpdatable write SetCheckUpdatable  stored IsCUS default True;

C++

__property bool CheckUpdatable = {read=GetCheckUpdatable, write=SetCheckUpdatable, stored=IsCUS, default=1};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Stan.Option.pas
FireDAC.Stan.Option.hpp
FireDAC.Stan.Option TFDUpdateOptions

Description

Controls the ability to change a TField value.

Use the CheckUpdatable property value to control whether FireDAC should raise an exception when the application tries to modify the field value in an inappropriate state. The default value is True

This is normally prohibited when:

  • The dataset is not in the dsEdit, dsInsert, dsSetKey, dsCalcFields, dsFilter, dsNewValue, dsInternalCalc state.
  • The dataset state is dsEdit, dsInsert and TField has ReadOnly = True and FireDAC.Stan.Option.TFDUpdateOptions.CheckReadOnly = True.
  • The dataset state is dsSetKey and the field is not indexed.

An exception is raised when CheckUpdatable is set to True and one of the above conditions is not met.

See Also