我想要讓我的登入畫面關閉.... |
尚未結案
|
caeser
一般會員 發表:4 回覆:3 積分:1 註冊:2005-06-15 發送簡訊給我 |
我的程式如下
若是我今天若是登入成功 就可以跳入主畫面..但是若是跳入主畫面後
那我的登入畫面如何讓他順便關閉.... 麻煩各位大大了~~ procedure TForm1.Button1Click(Sender: TObject);
var
found:boolean; begin
found:=adotable1.Locate('userid',edit1.text,[lopartialkey]);
if found=true then
begin
if (edit2.Text = adotable1['passwd']) then
begin
try
form2:=tform2.Create(application);
form2.ShowModal;
finally
form2.Free;
end
end
else
showmessage('你的帳號或密碼錯誤請重新輸入');
end
else
showmessage('你的帳號或密碼錯誤請重新輸入');
end; end.
|
Stallion
版主 發表:52 回覆:1600 積分:1995 註冊:2004-09-15 發送簡訊給我 |
|
acqua
一般會員 發表:3 回覆:24 積分:20 註冊:2005-09-13 發送簡訊給我 |
procedure TForm1.Button1Click(Sender: TObject); var found:boolean; begin found:=adotable1.Locate('userid',edit1.text,[lopartialkey]); if found=true then begin if (edit2.Text = adotable1['passwd']) then begin try form2:=tform2.Create(application); form2.ShowModal; exit; finally form2.Free; end end else showmessage('你的帳號或密碼錯誤請重新輸入'); end else showmessage('你的帳號或密碼錯誤請重新輸入'); Application.Terminate; end;發表人 - acqua 於 2005/10/31 15:23:42 |
Ktop_Robot
站務副站長 發表:0 回覆:3511 積分:0 註冊:2007-04-17 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |