Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speed Difference?
Message
 
 
À
23/04/2001 08:40:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00498486
Message ID:
00498583
Vues:
12
>>Thanks.
>>
>>If I open all my tables at the beginning, and I'm using Private Datasessions in the forms, then I may have problems with that.
>>
>>Kev
>
>
>No, you won't. VFP will do a USE AGAIN in the data session.

One of the problems experienced could be VFP not respecting SET REFRESH when initially opening tables in the datasession 1 and then using private datasessions (PDS). Yes, the tables will be opened faster in the subsequent datasessions, but older data may exist from time to time (e.g. printing reports).

A workaround for this that was documented here (in a previous post) and in the VMP docs is to RLOCK() and release a table in the subsequent PDS when you wanted to be sure you had the most recent data. The RLOCK() forces VFP to update the local cache.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform