Topic: Trying to use OnAfterClick with a button
Hello,
I have an application where I am using the action to show the selected record in a table in order that it can be edited. I have also added a line of code for the same Edit button in the OnAfterClick event. This line of code is:
Contact.Edit4.Text := 'Hello';
Contact is the form being opened for editing.
I thought this would mean that when the user clicks the edit button, the record would appear in the normal way for editing and then my line of code would be executed and place the word Hello in a field. The record does correctly appear for editing but my line of code does not seem to be executed. Have I completely misunderstood what is meant by OnAfterClick??
Thanks in advance, David.