Sign in Join
FPDoc Onlineexperiment

TCustomBufDataset.ReadOnly property

Member of TCustomBufDatasetpublicIn unit BufDataset

Indicates if records can be added, deleted, or modified in the dataset.

Declaration

pascal
property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;

Description

ReadOnly is a Boolean property which indicates if records can be added, deleted, or modified in the buffered dataset. The default value for the property is False.

ReadOnly is used, along with UniDirectional, when getting the value for the CanModify property. The dataset can be modified when both source properties contain the value False, which results in setting CanModify to True. Applications can set the value in ReadOnly to False to ensure that the dataset is not changeable regardless of the value in the UniDirectional property.

Use the items in the FieldDefs property to control whether individual fields defined for the dataset include the read-only field attribute. Use the items in the Fields property to determine if a field bound to a field definition has its ReadOnly property set.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.