- 0
سجل دخول لمتابعه هذا
متابعين
0

Hw To Stop Loop
بواسطة
Saatchi,
-
يستعرض القسم حالياً 0 members
لا يوجد أعضاء مسجلين يشاهدون هذه الصفحة .
بواسطة
Saatchi,
لا يوجد أعضاء مسجلين يشاهدون هذه الصفحة .
تم النشر منذ
salam all
the user can tries 3 times in each time when the password is wrong the msgbox tells the user ur password is wrong
the 3 times the message said u r hackers.
could u plz help me with my code
Dim logincount As Integer
Dim counter As Integer
For counter = 1 To 3
logincount = logincount + 1
If logincount = 3 Then
MsgBox("no more tries")
Exit Sub
End If
If txtpassword.Text = "password" Then
MsgBox("right")
Else
MsgBox("incorrect")
End If
Next
شارك هذا الرد
رابط المشاركة
شارك الرد من خلال المواقع ادناه