Programmatically changing the value of a DB-linked component (Delphi)
Posted on 2009-02-18
If I use code in the OnExit event handler of one control to change the value of another DB-linked control I see a range of unwanted behaviors such as the value not appearing in the second field until I click elsewhere on the form or the value appears in the field but disappears when the field is in focus.
I can code the event handler to change the database value directly but there are times that I don't want the change posted immediately.
So how do I modify the value of a db-linked control via code and have the field otherwise behave as it does when the value is typed in the field by the user?