PRB: Dynamically Changing Buffering Mode Doesn't WorkID: Q133016 The information in this article applies to:
SYMPTOMSDynamically changing the BufferModeOverride property of the Data environment changes the property, but not the behavior of the buffering. A dialog box reporting "Property setting will not take effect until data environment reloaded" also appears.
CAUSEVisual FoxPro does not change the behavior of the BufferModeOverride property dynamically while the tables are open. However, you can resolve the issue by closing the tables with the CloseTables method. Then change the property, and then open the tables again with the OpenTables method. The new setting of the buffering will then take effect.
RESOLUTIONThe following steps show you how to create a form that contains a combo box that allows you to change the BufferModeOverride property dynamically. 1. Create a new form. Set the DataSession property to 2 and the Caption 2. Using the right mouse button, click the form, and choose Data
3. Create a combo box and set the RowSourceType property to 1. Enter the
4. In the Valid method of the combo box, enter this code:
5. Add a command button to the form, and enter Next in the Caption
6. Add another command button with Previous as the Caption with the
7. Add another command button with Exit as the Caption, and enter the
8. Add a final command button with Write as the Caption, and enter the
9. Save the form, and create two instances of the form. You can now change
NOTE: Instead of changing the BufferModeOverride property, you can use the
CURSORSETPROP() function to do the same thing. This method does not require
you to open and close the tables. To use Table Buffering, ensure that
MULTILOCKS is set ON. Below is a code example using the CURSORSETPROP()
function:
STATUSThis behavior is by design. Additional reference words: 3.00 VFoxWin KBCategory: kbprg kbprb kbcode KBSubcategory: FxprgMultiuser |
Last Reviewed: July 31, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |