Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refreshing local buffers immediately?
Message
From
04/02/2001 11:05:43
Walter Meester
HoogkarspelNetherlands
 
 
To
03/02/2001 18:09:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00470592
Message ID:
00472298
Views:
55
Hi Andrus,

Hmmm, sad it didn't work out.
The problem you are facing is the problem of dirty buffers. I guess there are only a few ways to force the buffer to refresh.

1. Using RLOCK (only current record)
2. Using FLOCK
3. Closing the table and loading it again (but the table must be closed entirely, so other open aliases also).
4. Using SET REFRESH

It seems that in your case using SET REFRESH might be the only option you've got. It seems that you can have a 0.1 for the second parameter, but don't now if this works properly, maybe you can try. However one more suggestion thoug:

Just issue a SET REFRESH TO 0,1 (and INKEY(1.5) just before you execute the query and restore its value after it has been completed. Setting SET REFRESH is not scoped to the current datasession so restoring the old value gives less network trafic and could be a performance advantage in other forms.

I hope this helps.

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform