Property: ReadOnly

Determines whether the user can change the value of the field.

Syntax:

property ReadOnly: Boolean;

Description:

Use the ReadOnly property to specify whether the TBarcode2D barcode component specified in the Barcode2D property of a TDBBarcode2D component allows the user to change the field value by changing the value of its Barcode or Data (only for Delphi/C++ Builder 2009 or later) property.

When the ReadOnly property is set to true, the TBarcode2D barcode component can only be used to represent the value of the field on the current record.

When the ReadOnly property is set to false, for Delphi/C++ Builder 2007 or early, the user can change the field value by changing the Barcode property value of the TBarcode2D barcode component specified in the Barcode2D property of the TDBBarcode2D component. For the Delphi/C++ Builder 2009 or later, if the BindProperty is set to bpBarcode, the user can change the field value by changing the Barcode property value of the TBarcode2D barcode component specified in the Barcode2D property of the TDBBarcode2D component. If the BindProperty is set to bpData, the user can change the field value by changing the Data property value of the TBarcode2D barcode component specified in the Barcode2D property of the TDBBarcode2D component.

Contents