623 ObjectPAL: dmSetProperty()
VERSIONS: All

SUBJECT: Property ReadOnly

BY: BERTIL ISBERG
Date: 2 November 1996

With the method dmSetProperty(), you can change a tables Readonly property at run time, like this

dmSetProperty("MyTable", "ReadOnly", False)
active.action(DataDeleteRecord)
dmSetProperty("MyTable", "ReadOnly", True)

But to be able to change this property you have to be in edit mode.
if not isEdit() then
   self.action(DataBeginEdit)
endif
dmSetProperty("MyTable", "ReadOnly", False)
active.action(DataDeleteRecord)
dmSetProperty("MyTable", "ReadOnly", True)

To index