I am editing a record using a dbedit component, I have a cancel button but I’m not sure on how I can make it so all of the changes made using the dbedit components are reverted.
I was thinking about copying the record either to a temp table or duplicate the record within the same table which would let me remove the old record if the changes are saved or delete the copied record (leaving the original) if the input is cancelled.
I’m just wanting to know the best way to handle this without creating useless tables, creating too many procedures.
If I’m not mistaken changes to a paradox table only get written to the database after a
postcommand.If you want to cancel the change, just do
BTW, its been a long long time since I’ve worked with paradox tables, so my recollection my be incorrect, please feel free to vote down this answer if I’m mistaken.
I’m typing this on the mac, so I cannot check it now.
Will see if I can supply you with a more informed answer later.