I have a form that when it is called automatically opens a blank record in the database it uses (Append Blank). My question is that is a user were to accidently click the button that opens this form and then they click cancel, how do I revert the table to get ride of the blank record?
I use TableRevert(.t.) in the cancel button, but when I shutdown the application it comes up with the message that data has been changed in the database would I like to save? I ran into this error before when I changed data in tables or added records and found that TableUpdate(2,.f.) fixes that issue to save changes I want made.
As a side note to anyone using VFP 8.0 like I am. I found that even if you have Multilocks off VFP 8.0 still buffers and the TableUpdate() is required to save changes in databases during runtime else it will ask the user if they would like to save changes when they close the app, at least it does this when using VFP databases.
I would greatly appreciate anyones help on this issue since it have been bugging me for 2 days now.
-Serincino
I use TableRevert(.t.) in the cancel button, but when I shutdown the application it comes up with the message that data has been changed in the database would I like to save? I ran into this error before when I changed data in tables or added records and found that TableUpdate(2,.f.) fixes that issue to save changes I want made.
As a side note to anyone using VFP 8.0 like I am. I found that even if you have Multilocks off VFP 8.0 still buffers and the TableUpdate() is required to save changes in databases during runtime else it will ask the user if they would like to save changes when they close the app, at least it does this when using VFP databases.
I would greatly appreciate anyones help on this issue since it have been bugging me for 2 days now.
-Serincino