Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to TableRevert and When to Delete When Adding
Message
From
22/08/2001 05:17:07
 
 
To
21/08/2001 13:48:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00546881
Message ID:
00547130
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

Tablereveret(), for sure, works only for current alias (or alias that you specified) and do what you suggested. I do not know exactly about Requery(), but Requery() will work MUCH slower - tablerevert() just clear buffer in memory with new records and values, when requery() runs view's query and get data from database.

>I've been reading a lot about this lately, but still don't have a handle on it. When adding a record to a view and then deciding to cancel before saving, what is the best way to get rid of the new record in the view? Delete seems dangerous and I'm not exactly sure how/when to use TableRevert. If TableUpdate commits changes to the base table, does TableRevert only affect the view? If so, if TableUpdate hasn't been issued, does a Requery provide the same thing? Thanks!
>
>Regards, Renoir
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform