Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BufferMode vs CursorSetProp
Message
 
 
À
17/09/1996 06:21:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00007957
Message ID:
00007983
Vues:
44
>>- 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??
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform