Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BufferMode vs CursorSetProp
Message
 
 
To
17/09/1996 06:21:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00007957
Message ID:
00007983
Views:
39
>>- 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
Map
View

Click here to load this message in the networking platform