PRB: Assign Method and Optimistic Buffering Makes GetFldState() = 2 (268847)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q268847 SYMPTOMS
The GetFldState() value for the record of a buffered table has changed to 2 - (Field has been edited or deletion status has changed). This behavior occurs when any of the data controls on the form are based on a class where an Assign method has been added for the Value property (resulting in a Value_Assign method), and the ControlSource property of the data control is set to a field of a buffered table.
CAUSE
Any Assign method contains the following code by default:
LPARAMETERS vNewVal
*To do: Modify this routine for the Assign method
THIS.Value = m.vNewVal
This code assigns the value passed into the Assign method (vNewVal) to be that of the Value property of the data control. Because the data control is bound to the table through the ControlSource property, then the data in the table is re-written even though it is the same value. This can be verified by checking the GetFldState() return value of the bound field.
STATUS
This behavior is by design.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
128205 HOWTO: Set Buffering Mode in Visual FoxPro
(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Kenneth Robison, Microsoft Corporation.
Modification Type: | Major | Last Reviewed: | 8/27/2002 |
---|
Keywords: | kbDatabase kbDSupport kbOOP kbprb KB268847 |
---|
|