How to Set Buffering Mode in Visual FoxProLast reviewed: June 1, 1996Article ID: Q128205 |
The information in this article applies to:
SUMMARYData buffering is used in Visual FoxPro to enable edits to be made and verified in memory before they are applied to a .DBF file and to handle some record contention issues in a multiuser environment. There are several ways to use buffering within Visual FoxPro. This article gives you an overview.
MORE INFORMATIONThere are two ways to set the buffereing mode. Issue a SET MULTILOCKS ON, or choose the Multiple Record Locks check box in the Data Tab of the Tools, Options dialog to begin buffering data. Use one of the following methods to set the buffering mode.
Setting the Buffering Mode Through the Visual FoxPro InterfaceUse any one of the following methods to set the buffering mode through the Visual FoxPro user interface:
Setting the Buffering Mode ProgramaticallyTo set the buffering mode programatically, you can use the CURSORSETPROP() function to enable or disable buffering on an open table. The following line of code sets Optimistic Row buffering:
SET MULTILOCKS ON =CURSORSETPROP("Buffering",3)You must issue this line of code for each open table on which you wish to enable buffering. This command overrides the default BufferMode property on a form, or the default BufferModeOverride property for a cursor in the Data Environment for the Form.
REFERENCESFor more information on the properties and functions used in this article, please see the Visual FoxPro Language Reference. For information on using the Forms Designer, please see the Visual FoxPro User's Guide.
|
Additional reference words: VFoxMac 3.00b 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |