T
taibu
Unregistered / Unconfirmed
GUEST, unregistred user!
看到一个例子代码如下:<br>type<br> TMyCmb = class(TWinControl)<br> private<br> { Private declarations }<br> FEdit : TEdit;<br> ......<br>procedure TMyCmb.EditingChange(Sender: TObject);<br>begin<br> inherited ReadOnly := not FDataLink.Editing;<br>end;<br><br>我想向各位请教的是,上面代码中,inherited ReadOnly := not FDataLink.Editing;<br>这行能否写成:<br>procedure TMyCmb.EditingChange(Sender: TObject);<br>begin<br> inherited ; <br> FEdit.ReadOnly := not FDataLink.Editing;<br>end;<br>写到同一行与分两分写有何区别?