Specifies whether records are updated pessimistically or optimistically. Available at design time and run time.
Object.BufferMode[ = nValue]
The settings for the BufferMode property are:
(Default) None. Records are locked when editing begins and fields are written when the record pointer moves. Mimics FoxPro 2.x behavior.
Pessimistic. Records are locked when editing begins and fields are written when the record pointer moves. You can use TABLEREVERT(В ) to undo your changes to the current record.
Optimistic. Records are not locked when edited and Visual FoxPro attempts to lock the records when they are written to disk with TABLEUPDATE(В ).
If BufferMode is set to 1 or 2, any cursor used by a Grid control is enabled for table buffering. Any other control bound to data uses row buffering.
The BufferMode property setting will override any buffering settings made to form cursors prior to the form Init method, including those made in the form Load method.