[fpc-pascal] got "untyped" expected "<procedure variable type of procedure(TObject) of object; Register>"
Marco van de Voort
marcov at stack.nl
Wed Jul 16 11:36:39 CEST 2014
In our previous episode, Howard Page-Clark said:
> > begin
> > button:=TSpeedButton.Create(self);
> > button.OnClick:=SpeedButton1Click(button);
> There are two errors.
> button should be a field in the TForm1 class. Declared as a local
> variable it will be inaccessible after CreateButton() exits.
(he passes self as owner, so strictly speaking it will be accessable via the
form. But indeed it is not common practice.)
More information about the fpc-pascal