General information
Category:
Coding, syntax & commands
>>- What is the interaction/relationship between BufferMode and CursorSetProp()?
>
>BufferMode is a property of the cursors, CursorSetProp() sets it.
I'm still confused (sorry).
From VFP help, regarding BufferMode:
==============
Specifies whether records are updated pessimistically or optimistically.
Applies To
Form, FormSet, _SCREEN
BufferMode=2 -- Optimistic. Records are not locked when edited, and Visual FoxPro attempts to lock the records when they are written to disk with TABLEUPDATE( ).
Remarks:
Available at design time and run time.
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.
===========
So it looks like BufferMode is a property of a Form, and by setting that property you effect buffering for tables/cursors in the form's DE. So why is CursorSetProp even necessary??
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only