NODEFAULT

BufferMode, BufferModeOverride

These properties determine the type of buffering used for tables and views in a form or formset. BufferMode sets a default for the whole form or formset. BufferModeOverride lets you do something different for an individual table or view.

Usage

oObject.BufferMode = nBufferMode nBufferMode = oObject.BufferMode crsCursor.BufferModeOverride = nBufferOverride nBufferOverride = crsCursor.BufferModeOverride
These two similar properties use different numbering schemes. Check the lists in Help carefully.

For a form or formset's BufferMode, you have only three choices: no buffering, optimistic buffering or pessimistic buffering. If you choose either type of buffering, FoxPro automatically uses table buffering for any table in a grid and row buffering for the rest.

If you don't want the default for a particular cursor, use the cursor's BufferModeOverride. You get six choices there. One is to use the form default. Another is no buffering. The other four are the possible combinations of optimistic/pessimistic with row/table.

You can change both of these properties at runtime. However, the changes don't take effect until you call CloseTables and OpenTables. Changing BufferModeOverride triggers a message to that effect.

See Also

Buffering, CursorGetProp(), CursorSetProp(), DataSession, Set Multilocks


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net