Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BIG NEW B..: GETFLDSTATE() is changed.
Message
From
02/04/2004 13:36:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
BIG NEW B..: GETFLDSTATE() is changed.
Miscellaneous
Thread ID:
00891843
Message ID:
00891843
Views:
97
On Message #891694,
VFPT member Aleksey write this:


GetNextModified() returns buffered records.
GetFldState() for buffered record might return 1's
if the state was reset to 1's using SetFldState().

Thanks,
Aleksey.


This behaviour is a good choice,
because SetFldState not revert the buffer
( a very useful behaviour with two new state 11,13 ...),
and with GetNextModified i can found bufferd data.

BUT, on VFP6 and VFP7 this is true, on VFP8 this is not True

On Help Behavior Changes Since Visual FoxPro 7.0
i do not see anything related to GetNextModified.

Then it is a serious Changes, and i hope it is a Bug fixed on VFP9.

repro code
CREATE CURSOR pippo (aa i)
CURSORSETPROP("Buffering",1)
APPEND BLANK
APPEND BLANK
GO top
CLEAR
set multilock on
CURSORSETPROP("Buffering",5)
? "no changes",GETNEXTMODIFIED(0),GETFLDSTATE(-1),"field on buffer",aa,"field on file", OLDVAL('AA')

replace aa WITH 77
?
? "after replaced"
? GETNEXTMODIFIED(0), GETFLDSTATE(-1),"field on buffer",aa,"field on file", OLDVAL('AA')
?
? "now reset bit via software",SETFLDSTATE(1,1)

? " buffered status is hidden, but it exist into VFP"
* NEXT LINE PRINT 1,11,77,0 on VFP6SP5,VFP7SP1
* NEXT LINE PRINT 0,11,77,0 on VFP8SP1, THEN I CAN FOUND BUFFERED DATA WITH OLDVAL() COMPARISON ONLY
? GETNEXTMODIFIED(0), GETFLDSTATE(-1),"field on buffer",aa,"field on file", OLDVAL('AA')	
? "update",TABLEUPDATE()
? GETNEXTMODIFIED(0), GETFLDSTATE(-1),"field on buffer",aa,"field on file", OLDVAL('AA')
Next
Reply
Map
View

Click here to load this message in the networking platform