请帮我检查一下我的代码是哪里错了

Home Home
引用 | 编辑 湮灭之火
2013-03-22 10:14
楼主
推文 x0
当账号密码输入错误时,它没有弹出Msg的消息,请问是哪里写错了么?

Private Sub Command2_Click()
If Dir(Text1.Text, ..

访客只能看到部份内容,免费 加入会员



献花 x0
引用 | 编辑 三仙
2013-03-23 10:08
1楼
  
请参考复制程式
    If Dir(Text1.Text, vbDirectory) <> "" Then
        i = FreeFile
        Open Text1.Text For Input As #i
        Do While Not EOF(i)
            Line Input #i, a
            DoEvents
        Loop
        Close #i
    End If
 
    If a = Text2.Text Then
        Form3.Show
    Else
        MsgBox ("不存在!")
    End If


献花 x1