Simple Delphi problem?

Dovi

Expert Member
Joined
Feb 11, 2005
Messages
1,454
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? :confused:

EDIT: Found a lazy work around that didn't require any coding. Mod please delete.
 
Last edited:

dequadin

Expert Member
Joined
May 9, 2008
Messages
1,434
Dovi rather that deleting your post, rather reply with the solution.

That way the next person can also get the solution!
 
Top