Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BIG NEW B..: GETFLDSTATE() is changed.
Message
From
03/04/2004 06:03:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/04/2004 14:13:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00891843
Message ID:
00891977
Views:
23
Pertti,
He doesn't exactly say that. However even if he did there are cases you might want to. Bug he demonstrated really scares me.
PS: I was totally wrong in previous thread. I simply couldn't think GetNextModified() would apply to table buffering only.
Fabio is a perfect bug catcher, isn't he :) Hope he gets involved in VFP beta testing (if not already).
Cetin

>Fabio:
>
>Hmmm... Why would you want to reset the flag with SetFldState() without also resetting the value it refers to?
>
>In my case I reset the flag AND the value in the buffer, but I still get a change flag from GetNextModified(), but no flags from GetFldState() for the same record. I'm using VFP6 on this.
>
>Pertti
>
>>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')
>>
>>
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform