Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with tablerevert
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00111461
Message ID:
00111624
Vues:
15
>>I have procedure that I perform to a buffered table (opt 5) that
>>1. deletes the current record
>>2. appends a new record and fills some fields in the newly appended record with some values.
>>
>>Okay so far.
>>
>>If Tableupdate() passes everything is fine, but if a tablerevert() is issued do to a cancel by the user, or a failed tableupdate, the revert doesn't recall my deleted record back. It only goes back to where I deleted the record leaving me with no record instead of the initial value before I started. Is there a way to put this record back in other than issuing a recall for the record in the case of a tablerevert action?
>>
>>Thanks.
>>
>>John
>
>John,
>
>Are you sure you issue TABLEREVERT() with the .T. paramater to revert ALL records modified on the table. I did a quick test on a table in VFP5 and it reverted fine.

Hi Ian,

I have a bug somewhere in my code apparently, because I just tested a small table also, and the append gets deleted and the deleted records do reappear when I issue tablerevert(.t.,tablename). Thanks for responding, and sorry for jumping the gun on my post, I should have experimented on a sample table first, however, I may have a question later if I can't figure out why I'm not "fully" reverting here.

Thanks again!

John.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform