* Written By: Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
* Microsoft Visual Foxpro 9
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental, Philippines
*
* Object : Command1 Proceudre: Click
cMessageTitle = 'Information'
mcMsg1 = "After Three Attempts. Invalid Username or Password."
mnLenMsg1 = LEN(mcMsg1)
mcMsg2 = "Kindly contact the programmer for assistance."
cMessageText = mcMsg1;
+ CHR(13);
+ mcMsg2
nDialogType = 0 + 48 + 0
SELECT login
thisform.text3.Value = thisform.text3.Value -1
if thisform.text3.Value < 1
MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)
THISFORM.Release()
Else
IF EMPTY(ALLTRIM(THISFORM.Text1.Value))
messagebox("Cannot continue without Username.")
thisform.text1.setfocus()
ELSE
IF EMPTY(ALLTRIM(THISFORM.text2.Value))
messagebox("Cannot continue without Password.")
thisform.text1.setfocus()
ELSE
locate for allt(lower(username))=allt(lower(login.text1.value)) ;
.and. allt(lower(pass_me))=allt(lower(login.text2.value))
if found()
DO FORM main_page
ELSE
messagebox("Incorrect Username or Passsword. Try Again")
thisform.text1.value =""
thisform.text2.value =""
thisform.text1.setfocus()
ENDIF
ENDIF
ENDIF
ENDIF
* Written By: Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
* Microsoft Visual Foxpro 9
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental, Philippines
*
* Object : Command2 Procedure: Click
thisform.Release
* Written By: Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
* Microsoft Visual Foxpro 9
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental, Philippines
*
* Object : Form1 Procedure: Init
THISFORM.Text3.Value = 3
Nice explain for foxpro login with example.
ReplyDeleteVisual Foxpro Migration and Foxpro Migration