Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffer doesn't update
Message
De
22/11/1999 13:10:53
 
 
À
22/11/1999 13:06:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00293982
Message ID:
00293990
Vues:
23
>In MyForm init:
>SET MULTILOCKS ON
>CURSORSETPROP("buffering",5,"MyView")
>CURSORSETPROP("buffering",5,"MyTable")
>Buffermodeoverride is set to 1 on both.
>
>In save button click:
>TABLEUPDATE(1,.T.,"MyView")
>
>In revert button click:
>TABLEREVERT(.t.,"MyView")
>
>The revert button works, at least it changes the records in the grid back to what they were before the changes were made.
>
>But the save button does not save the changes to the original table (MyTable).
>
>What am I missing?

You don't need to open the table in the same DE as the view. As a matter of fact, doing this causes a "double buffering" situation, where the changes from the view are written to the buffered copy of the view, and not to the base table. If you need the table open as well, YOu'll have to execute a TABLEUPDATE on the table to get the changes back to disk.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform