Before I begin, I must point out that no other post in this thread has helped me yet.
I have a dynamic button called btnApply
It is dynamically created in the frmSort dynamic form through the click event of the btnSort static button on the frmTable static form
In the global scope, var frmTable is declared
btnApply: TButton; Procedure btnApplyClick(Sender:TObject);
Under btnSort when clicked
//other code btnApply:= TButton.create(frmSort); //all its properties BtnApply.onclick:= btnApplyClick; //other code
Then later
Procedure btnApplyClick(Sender:TObject); Begin //it code it has to execute End;
I get an error on the page "BtnApply.onclick: = btnApplyClick;" A line of incompatible types between a method pointer and a regular procedure
How do I do this job?
Thank you in advance
source share