o esto puede Funcionar: ( this can function )Function
Function PassWord(cClave)
Local aMsg
Local cPass,cCar,oCursor
Local j,i,y,x,bRet := FALSO
aMsg := MsgBox( "Entre Clave","Digite su Clave Por Favor" )
oCursor := SetCursor(SC_SPECIAL1)
For i := 1 to 3
@ 12,33 Say "[**********]" Color "N/W*"
cPass := Space(10)
For j := 1 to 10
SetPos(12,33+j)
cCar := Inkey(0)
IF cCar == K_ENTER .or. cCar == K_ESC
Exit
Else
@ 12,33+j Say Chr(254) Color "B/W*"
cPass -= IF( cCar == 32,"-",Chr(cCar) )
End
Next
If cCar == K_ESC
Exit
End
IF Upper( AllTrim(cPass) ) == Upper( cClave )
bRet := VERDAD ; Exit
End
Next
SetCursor(oCursor)
If bRet == FALSO
@ 12,30 Say "..Clave Incorrecta.." Color "R/W*"
Inkey(0)
End
RstEnv( aMsg )
Return( bRet )
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.