Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffering-Update Conflict
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00544726
Message ID:
00544734
Vues:
25
>I am having a problem with two update conflicts I am unable to figure out. I have a from open, make changes to the data. I then select another form. The first form is hidden(not released). In the hide method I have code to save the data changes. The tableupdate fuction returns true when the data is saved. As the second form activates it refreshes itself form the data tables.
>
>Both forms have Private datasessions. All cursor buffrmodeoverride properties are set to 1, I use CURSORSETPROP to set the buffers programmically. The forms are using/editing data from the same records.
>
>When I release the forms then open the new form, all works well-data is saved and no conflicts. When the forms are hidden , I get the update conflicts.
>
>Help

Ken,
< set wag on >
You might try issuing a FLUSH to make VFP write the changes to disk when the form is hidden. When you release the the form, the tables opened are closed and the changes that the TableUpdate() wrote to disk cache are flushed at that time.
< set wag off >
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