CdbRecordset::SetLockEdits, GetLockEdits Property

Sets or returns a Boolean value indicating the locking that is in effect during editing.

Syntax

BOOLGetLockEdits(VOID);

VOIDSetLockEdits(BOOL b);

Set Parameters

Type Example Description
BOOL b A Boolean value indicating the locking that is in effect:

TRUE(Default) Pessimistic locking is in effect. The 2K page containing the record you're editing is locked as soon as you use the Edit method.

FALSEOptimistic locking is in effect for editing. The 2K page containing the record is not locked until the Update method is executed.