From Xojo Documentation

Property (As Boolean )
aDataControl.RecordLocked = newBooleanValue
BooleanValue = aDataControl.RecordLocked

Supported for all project types and targets.

A value of True means that the record is locked, preventing changes to the record; False indicates that it is unlocked.

Sample Code

The following example checks the value of RecordLocked.

If Not Me.RecordLocked Then
// update the record
End If