請幫我檢查一下我的代碼是哪裡錯了

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