Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force read of a dbf
Message
From
28/01/2016 03:29:46
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
28/01/2016 03:25:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01630339
Message ID:
01630342
Views:
69
>>How to force read of a DBF?
>>
>>I have a dbf in concurent use.
>>
>>This is, a record is changed.
>>I try to TABLEUPDATE, this fails due to a field changed. This is intended.
>>If I set the field wo the right value TABLEUPDATE still fails. A SELECT will bring right result.
>>
>>The only way to force right result right now is to close the dbf and let TABLEUPDATE reopen it.
>>
>>Any idea aside USE IN SELECT(cALIAS) to force the dbf to refresh?
>
>FLOCK() / RLOCK() should do it.
>
>My understanding is, by design, those are the ONLY ways you can be guaranteed to get the currently persisted values.

Whats more ugly:
xLOCK() or USÉ IN xx -> USE xx

IOW the locks interact with other process using the table. Will USE be better in that sense? It's a rare case, I can do with reopen it ..
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform