線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1402
推到 Plurk!
推到 Facebook!

Message box with Yes/No choice?

尚未結案
Vashee
初階會員


發表:38
回覆:87
積分:25
註冊:2003-03-31

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-05-11 22:39:28 IP:217.36.xxx.xxx 未訂閱
Is that practical possible.? common situation. when u want to delete a record, a pop up message will show up asking you to confirm it with (Yes button or No button) Do i have to create another form to achieve this? or just a syntax will do that job? thanks
timhuang
尊榮會員


發表:78
回覆:1815
積分:1608
註冊:2002-07-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-05-12 00:39:15 IP:61.221.xxx.xxx 未訂閱
Please refer 'MessageDlg' function:    
procedure TForm1.Button1Click(Sender: TObject);
begin
  case MessageDlg('please choice a answer', mtConfirmation, [mbYes, mbNo], 0) of
    mrYes: Showmessage('yes');
    mrNo: Showmessage('no');
    else showmessage('nothing');
  end;    end;
Vashee
初階會員


發表:38
回覆:87
積分:25
註冊:2003-03-31

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-05-12 00:51:51 IP:217.36.xxx.xxx 未訂閱
If the 'Yes' option is: ADOTable.Delete Where should I put that?
Justmade
版主


發表:94
回覆:1934
積分:2030
註冊:2003-03-12

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-05-12 08:09:18 IP:218.16.xxx.xxx 未訂閱
His code is 100% clear enough for where to put it.
系統時間:2024-07-03 1:06:37
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!