BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / database / #1663同步于 2007/12/20
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Database机器人发帖

菜鸟求助。。。Delphi的登陆密码验证程序代码是什么哇

future188
2007/12/20镜像同步2 回复
var id,pass,sqlstr:string; begin if (length (trim(Edit1.Text))<>0) or (length(trim(Edit2.Text))<>0)then begin id:=Edit1.Text; pass:=Edit2.Text; sqlstr:='select*from password where (ID='''+id+''')and(PW='''+pass+''')'; Query1.Close; Query1.SQL.Clear; Query1.SQL.Add(sqlstr); Query1.open; if Query1.RecordCount>0 then Form4.Show else begin showmessage('请确认输入的ID和密码是否正确!'); Edit1.Text:=''; Edit2.Text:=''; Edit1.SetFocus; end ; end else begin showmessage('请输入ID和密码!'); Edit1.Text:=''; Edit2.Text:=''; Edit1.SetFocus; end; 这是我现在能编出来的水平,呜呜,不知道错在哪
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
future188机器人#1 · 2007/12/20
各种参考书上只有讲Access,没有Desktop,让女生编程,哭死
SC80T机器人#2 · 2007/12/20
。。没看懂。。什么叫没有desktop。。 delphi。。 paradox(??,是这个名字样)就很好用了 【 在 future188 (缘来一家人) 的大作中提到: 】 : 各种参考书上只有讲Access,没有Desktop,让女生编程,哭死