Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to refreshing local buffers immediately?
Message
De
01/02/2001 09:15:24
 
 
À
01/02/2001 01:57:03
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00470592
Message ID:
00471199
Vues:
37
>Hi andrus,
>
>I don't know for sure, but a USE MyTable AGAIN ALIAS DUMMY IN 0 (without closing the already open alias), might also refresh your buffers.
>
>Walter,
>
>>This file is used by other users and by other windows in
>>my program.
>>
>>I cannot use FLOCK(): other users from network
>>may have placed locks into this table so flock() fails.
>>
>>I use this table as grid recordsource and as a target of a
>>SET RELATION command. Closing it using USE leads to sophisticated code
>>to re-use it.
>>
>>
>>>In stead on using a RLOCK(), you might want to try a FLOCK() or alternatively close it and use the table again before you issue the SQL-SELECT
>>>
>>>Walter,
>>>
>>>
>>>>I have a shared non buffered dbf file. I need to get latest data from it using SQL SELECT command.
>>>>
>>>>I have a command
>>>>
>>>>SET REFRESH TO 0,1
>>>>
>>>>in my form init.
>>>>
>>>>If records are added to this shared dbf file by other instance of VFP,
>>>>SQL SELECT in another instance does not find added rows.
>>>>
>>>>This occurs on LAN or if two vfp programs are running on local computer using same dbf file.
>>>>
>>>>I discovered that adding a line
>>>>
>>>>inkey(1.5)
>>>>
>>>>before SQL SELECT fixes this behaviour: SELECT then returns latest data.
>>>>
>>>>However, adding inkey(1.5) 's before SELECTs decreases program speed.
>>>>
>>>>How to force VFP to refresh its local buffers immediately ?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform