1
I need to use the procedure ClicaItem(Sender: TObject);
in a OnClick
created at runtime by the procedure CriaItem(nome:String);
.
However, in all my attempts, I could not attribute item.OnClick
à Procedure ClicaItem
. How should I proceed if there is a mistake concerning the incomparable types?
Error: Incompatible types: got address of Process (Tobject);Register" expected "Process variable type of Project (Tobject) of Object;Register>"
I ask to clarify the creation of the process to the type accepted by Onclick, and how should I do this assignment in the event OnClick
.
NOTE: The item is normally created in Runtime (runtime), but the line referring to Onclick is commented due to the error before compiling.
You cannot assign one directly to the other because they have different parameters. I think more information than you’re willing to be able to do is important.
– EMBarbosa