Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Buffering or not to Buffering
Message
From
09/03/2009 09:50:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/03/2009 13:47:43
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01386500
Message ID:
01386612
Views:
65
>Hi.
>I'm writing a multi-user application and I have some questions about buffering:
>1. Is really necessary to use buffering?
>2. Which buffering method is "safer"? Record/Table (Pessimist/Optimistic)?
>Thanks in advance.

Apart from the less likely table corruption mentioned, quite simply, buffering allows you to provide the user with "Save" and "Cancel" buttons. In other words, you can have the TextBoxes, etc. on your form directly linked to the table fields (through the .ControlSource property), but only when the user presses a "Save" button will the changes be saved.

Also, any validation is postponed until the program tries to save the record.

In summary, I don't find Buffering absolutely necessary, but it is a great convenience.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform