Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with buffering = .t.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01349615
Message ID:
01349940
Views:
26
Well, I was thinking I was using row buffering on that form, but it turns out I was using table buffering. The uniqueness error was correct. I populated the field with a duplicate value. However, as I mentioned, that's not actually a problem until you execute a TABLEUPDATE. The help file says "If the cursor uses table buffering, then the modified current record is saved into the buffer." The operative phrase here is "into the buffer." So if it's only saved into the buffer, why did I get the uniqueness error? I fixed the problem by simply ensuring the value is unique, but it left me wondering. This feature is not working like it seems it should be working.

>Hi Russell,
>
>> What's the real answer here?
>
>Use table buffering. Row buffering is something that VFP simulates behind the scenes with all kind of exceptional code. Table buffering is VFP's native buffering. There is no reason to use row buffering, unless the program doesn't care when data is written and buffering is just there as a little convenience for the user. But then you wouldn't be asking if VFP updates data or not...
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform