Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty cursoradapter cursor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00866479
Message ID:
00866548
Vues:
24
>>Hmmm, I can't imagine the CursorRefresh doing both a REQUERY and TABLEUPDATE. I would look in the BeforeCursorRefresh method to see if the TABLEUPDATE is done there.
>
>When I added new record to the cursor (INSERT INTO cursor_name...) and then called CursorRefresh. It updated the table by adding new record to the table. Is this wrong and should some other method be used instead of?

You are doing this correctly. i just can't believe the CursorRefresh is performing a TableUpdate as well. Are you using table or row buffering? My guess would be row buffering where something is moving the record pointer off the added record so an implicit TableUpdate is firing. ANyway, you should either do a TableRevert() or TableUpdate() before calling the CursorRefresh. I am quite sure something else is going on because CursorRefresh does not natively do the TableUpdate for you. Something else is triggering this.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform