On 25.10.2017 11:14, Michael Van Canneyt wrote:
On Wed, 25 Oct 2017, Ondrej Pokorny via Lazarus wrote:
Yes, the code is wrong. But the reason is that myMethod is assigned in FormCreate. The later "@myMethod := pMethod;" assignment overwrites only half of the myMethod:TProc variable and so correct Self stays in the second half of myMethod.

That is what I wanted to indicate :)

Sorry - I am often to dumb to understand indications - my wife can confirm that :)

Ondrej
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to