K
kenmen
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> Save: Integer;<br>begin<br> Save := MessageDlg(Format('保存更改到 %s?', [FileName]),<br> mtConfirmation, mbYesNoCancel, 0);<br> case Save of<br> idYes: s1Click(Self);<br> idNo: nochange(filename){...............};<br> idCancel: Abort;<br>end;<br>1)我看书说MessageDlg()的返回值是word,为啥可付给Save?<br>2)为啥可用case 语句来对save进行付值?<br> 'idyes'等是啥类型的?<br>谢了!<br>