Visual FoxPro Developer Center >
Visual FoxPro Forums
>
Visual FoxPro General
>
Not sure if I can celebrate yet let me know
Not sure if I can celebrate yet let me know
- After putting my form in private datasession I put the environment tables with no buffering and I have no problem opening forms or recording data. Will this bring me trouble later if I implement this for multiuse purposes? I use the flock command to control access to data and they work well.
Answers
After putting my form in private datasession I put the environment tables with no buffering and I have no problem opening forms or recording data. Will this bring me trouble later if I implement this for multiuse purposes? I use the flock command to control access to data and they work well.
Explicit locking is always a source of problems. A better approach is to use local buffering.
Take a look at the following blog articles. They explain how to use buffering in VFP.
Buffering and Locking in Visual FoxPro - an Overview (http://weblogs.foxite.com/andykramek/archive/2005/10/18/948.aspx)
Handling buffered data in Visual FoxPro (http://weblogs.foxite.com/andykramek/archive/2005/12/27/1077.aspx)
-- Andy Kramek- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorWednesday, November 11, 2009 9:25 AM
All Replies
- Maybe you should spend some time on reading and understanding the difference between buffering vs non-buffering, flock() etc. and do many tests before celebrating.
- Premature celebrating is the root of all evil in programming :)))
Premature optimization is the root of all evil in programming.
Donald Knuth, repeating C. A. R. Hoare
My blog After putting my form in private datasession I put the environment tables with no buffering and I have no problem opening forms or recording data. Will this bring me trouble later if I implement this for multiuse purposes? I use the flock command to control access to data and they work well.
Explicit locking is always a source of problems. A better approach is to use local buffering.
Take a look at the following blog articles. They explain how to use buffering in VFP.
Buffering and Locking in Visual FoxPro - an Overview (http://weblogs.foxite.com/andykramek/archive/2005/10/18/948.aspx)
Handling buffered data in Visual FoxPro (http://weblogs.foxite.com/andykramek/archive/2005/12/27/1077.aspx)
-- Andy Kramek- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorWednesday, November 11, 2009 9:25 AM


