Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shared Access & Updateable Views
Message
De
01/11/1999 19:53:00
Jill Derickson
Software Specialties
Saipan, CNMI
 
 
À
01/11/1999 17:42:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00284390
Message ID:
00285191
Vues:
20
Erik,

YES! it works! thank you, thank you.

>This should be no problem. But before we go any further you should be clear on the difference between Table and Row Buffering. Row buffering buffers ONE row at a time. IOW, if you have a row buffered view open, and you make changes to the first row, and then click on the next row in the grid, VFP does a TABLEUPDATE() for you. This is why I NEVER use row buffering. You have no control over when, and cannot read the return value from a TABLEUPDATE. IMHO, Row Buffering usually does nothing but make things a horrible mess. If one of the tableupdates fails, you don't know it (or you get an error), and you are left with a dirty buffer that should be reverted. What I just said above is basically what the Hacker's Guide was trying to tell you.
>
>With Table Buffering, no changes are sent until you explicitly call TABLEUPDATE().

That is clear and concise and has helped my understanding greatly (I'd always thought table buffering was mainly for when you wanted to change more than one row at a time). Or MAYBE just hearing/reading something for the nth time helps it sink into my thick head. You've won a convert to table buffering.


>And this is where I think you were being thrown off. You were reverting changes to one record, and leaving a dirty buffer in another (it was still dirty because VFP's TABLEUPDATE() failed and didn't tell you)

Repeating what you wrote above: "IMHO, Row Buffering usually does nothing but make things a horrible mess."
It sure does...I didn't know WHAT was going on.


My problem now, however, is creating an index on my view...kind of related, but off this subject...will start another thread.

J
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform