The following code generates a syntax error, if the semicolon after the if/else statement is removed.<br>Is its absence a syntax error? Pascal version is 2.2.4<br><br>procedure TfrmHometel.SetSplitterSizes;<br>var<br> i: integer;<br>
begin<br> for i:= 0 to ComponentCount - 1 do<br> begin<br> if Components[i] is TSplitter then<br> begin<br> with TSplitter(Components[i]) do<br> begin<br> if Cursor = crHSplit then<br> Width := 7<br>
else if Cursor = crVSplit then<br> Height := 7;<br> ; // <-- removing this semicolon results in a syntax error. Is it syntax error some kind of extra strict compiler check.<br> Color := clBlue;<br>
end;<br> end;<br> end;<br>end;<br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>