home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Chkpass
-
- PARAMETERS _ckrow, _ckcol
-
- PRIVATE _oldcolor, _inpass, _chk, _t
-
- IF TYPE("scrtimes") = "U"
- RETURN(.T.)
- ENDIF
- IF scrtimes = 0
- RETURN(.T.)
- ENDIF
-
- scrshow = IF( (TYPE("scrshow") = "U"), .T., scrshow)
- scrcolor = IF( (TYPE("scrcolor") = "U"), SETCOLOR(), scrcolor)
- scrtimes = IF( (TYPE("scrtimes") = "U"), 0, scrtimes)
- _inpass = ""
-
- _oldcolor = SETCOLOR()
- IF !scrshow
- SETCOLOR(HIDEGET(_oldcolor))
- ENDIF
-
- _showcolor = SETCOLOR()
-
- Windowpush(_ckrow-3, _ckcol-5, _ckrow+3, _ckcol+34)
-
- SETCOLOR(_showcolor) && This is for the get working with the window logic.
-
- FOR _ckx = 1 to scrtimes
- _inpass = SPACE(15)
- @ _ckrow, _ckcol SAY "Password --> " GET _inpass PICT "XXXXXXXXXXXXXXX"
- READ
- IF !EMPTY(_inpass)
- _t = GENPASS(_inpass)
- IF _t = scrpass
- _ckx = 1000
- ENDIF
- ENDIF
- NEXT
- Windowpop()
- SETCOLOR(_oldcolor)
- RETURN(_ckx > 101)
-
- * End of File