🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.visual-basic
Article #64

Re: ��λ�����ã����һ��vb��д���������

#64
From: ���Ʈ
Date: Tue, 26 Jun 2007 11:23
50 lines
2772 bytes
Private Sub Command1_Click()
Dim mrc As ADODB.Recordset

'����������������������������������������
'����Ϊ�����û��������Ĵ���         (��δ�����frmdenlu.frm�У�
'����������������������������������������
txtsql = "select username from use where username='" & Trim(Text1.Text) & "'"
Set mrc = ExecuteSQL(txtsql)
If mrc.EOF = True Then
  MsgBox " �û������", vbExclamation + vbOKOnly, "����"
  Text1.SetFocus
  Text1.SelStart = 0
  Text1.SelLength = Len(Text1.Text)
  Exit Sub
End If
username = mrc.Fields(0)
txtsql = "select username from use where password='" & Trim(Text2.Text) & "'"
Set mrc = ExecuteSQL(txtsql)
If mrc.EOF = True Then
  MsgBox " �������", vbExclamation + vbOKOnly, "����"
  Text2.SetFocus
  Text2.SelStart = 0
  Text2.SelLength = Len(Text2.Text)
  Exit Sub
End If

MDIForm1.Show
Unload Me
End Sub





�� �� upupup (upupup) �Ĵ������ᵽ: ��
: С������������һ��vb���롣������Ҫ�����û�������롣���ǵ�һ�ο����������ڴ������Ҳ����û�������롣���λ����ָ�̡��ҽ����븽���˸������ˡ�
: ϣ���ܾ���ظ���лл�ˣ�



--
..........................................
           _______ {&>  ______
                    ------ / \  -----
                    ----- {   }-----
                    ------ [ ] ----- 
                   ====/|||\====  �޲��ܲ��ɾ���


�� ��Դ:��BBS ˮľ�廪վ http://smth.edu.cn��[FROM: 221.235.104.*]
Technical Details
Message-ID: <4UdWcB$2O6@bbs.tsinghua.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!news.buerger.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.szu.edu.cn!news.happynet.org!SMTH

Show Full Headers
Complete Article Headers
X-Google-Thread: 109fdd,38119edb9763ff4e,start
X-Google-Attributes: gid109fdd,public,usenet
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!news.buerger.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.szu.edu.cn!news.happynet.org!SMTH
From: chenlaolong@smth.edu.cn-SPAM.no (���Ʈ)
Newsgroups: cn.bbs.comp.lang.visual-basic
Subject: Re: ��λ�����ã����һ��vb��д���������
Date: 26 Jun 2007 11:23:24 GMT
Organization: BBS ˮľ�廪վ
Message-ID: <4UdWcB$2O6@bbs.tsinghua.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: VisualBasic/U/M.1182857003.B0
Lines: 50