<p>Am 22.02.2012 22:49 schrieb "Mattias Gaertner" <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>>:<br>
><br>
> On Wed, 22 Feb 2012 20:55:01 +0000<br>
> Mark Morgan Lloyd <<a href="mailto:markMLl.lazarus@telemetry.co.uk">markMLl.lazarus@telemetry.co.uk</a>> wrote:<br>
><br>
> > I've just spotted this in my code:<br>
> ><br>
> > procedure FormCloseQuery(Sender: TObject; CanClose: boolean);<br>
> > ..<br>
> > procedure TListForm.FormCloseQuery(Sender: TObject; CanClose: Boolean);<br>
> ><br>
> > Those were inserted by some old version of the IDE, presumably the<br>
> > current version inserts the missing var.<br>
><br>
> I don't remember such a bug, but I'm not sure. Maybe it was there for a<br>
> very short time and you were just unlucky.<br>
><br>
><br>
> > Shouldn't either the IDE or the runtimes pick up this error?<br>
><br>
> It's valid code. What do you expect?</p>
<p>Huh? And what will happen if this handler gets assigned to OnCloseQuery through the LFM?</p>
<p>Regards,<br>
Sven</p>