I'm trying to code something in Delphi where a user can select a list of products from a lookup combo box which displays all the fields in various DBEdit boxes. As a means of data control, I'm trying to prevent the data being saved that's entered in the DBEdits until a user clicks 'Save'. But everytime I click the combo box, whatever I typed in the DBEdit is automatically saved. I'm assuming this is because when I click the lookup combo box, I move the marker in the database and it saves what I typed in.
So, the question is: How do I restore the text in the DBEdit to the original text, before the marker of the database is moved when the lookup combo box is selected?
EDIT: Found a lazy work around that didn't require any coding. Mod please delete.
So, the question is: How do I restore the text in the DBEdit to the original text, before the marker of the database is moved when the lookup combo box is selected?
EDIT: Found a lazy work around that didn't require any coding. Mod please delete.
Last edited: