From RAD Studio API Documentation
Jump to: navigation, search


property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;


__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};


Type Visibility Source Unit Parent
property published
Bde.DBTables TTable


Specifies whether a table is read-only for this application.

Use the ReadOnly property to prevent users from updating, inserting, or deleting data in the table. By default, ReadOnly is false, meaning users can potentially alter a table's data.

Note: Even if ReadOnly is false, users may not be able to modify or add data to a table. Other factors, such as insufficient SQL privileges for the application or its current user may prevent successful alterations.

To guarantee that users cannot modify or add data to a table,

1 Set the Active property to false.

2 Set ReadOnly to true.

When ReadOnly is true, the table's CanModify property is false.

See Also