I will be upgrading to 2.4.0 soon.<br><br>It shouldn't be an error then.<br><br><div class="gmail_quote">2010/7/1 Guillermo Martínez Jiménez <span dir="ltr"><<a href="mailto:gmartinez@burdjia.com">gmartinez@burdjia.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">> procedure TfrmHometel.SetSplitterSizes;<br>
> var<br>
> i: integer;<br>
> begin<br>
</div>> for i:=3D 0 to ComponentCount - 1 do<br>
<div class="im">> begin<br>
> if Components[i] is TSplitter then<br>
> begin<br>
> with TSplitter(Components[i]) do<br>
> begin<br>
</div>> if Cursor =3D crHSplit then<br>
> Width :=3D 7<br>
> else if Cursor =3D crVSplit then<br>
> Height :=3D 7;<br>
<div class="im">> ; // <-- removing this semicolon results in a syntax error. Is it<br>
> syntax error some kind of extra strict compiler check.<br>
</div>> Color :=3D clBlue;<br>
> end;<br>
> end;<br>
> end;<br>
> end;<br>
<br>
Compare with next:<br>
<br>
if Cursor =3D crHSplit then<br>
Width :=3D 7<br>
else<br>
if Cursor =3D crVSplit then<br>
Height :=3D 7; // <-- This semicolon is for the "if".<br>
; // <-- This semicolon is for the "else".<br>
<br>
Is like this:<br>
<br>
IF ... THEN<br>
BEGIN<br>
...<br>
END<br>
ELSE BEGIN<br>
IF ... THEN<br>
BEGIN<br>
...<br>
END; // <-- This END is for the "IF".<br>
END; // <-- This END is for the "ELSE".<br>
<br>
I recommend to use "BEGIN ... END" blocks in nested "IF" always to<br>
prevent this kind of mistakes.<br>
<br>
Regards,<br>
Guillermo "Ñuño" Martínez.<br>
<div><div></div><div class="h5">_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>