Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Password character
Message
De
14/02/2002 09:11:51
 
 
À
14/02/2002 06:24:47
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00619907
Message ID:
00619977
Vues:
13
Hi Dorin,
Here is an example of how we do it in FPD26:
		*---Get Password
		hideword = ""
		password = ""
		mkey     = ""


		DO WHILE .T.
			hideword = LEFT(hideword+SPACE(8),8)
			@  2,22 GET hideword PICTURE "XXXXXXXX"
			CLEAR GETS
			hideword = RTRIM(hideword)
			
			mkey = INKEY(0,"H")
			
			DO CASE
			CASE mkey < 0
				LOOP
			CASE mkey = 13 .OR. mkey = 10
				EXIT
			CASE mkey = 27
				*---IF [Esc] was hit start over
				producer = "   "
				EXIT
			CASE mkey = 127
				*---BACKSPACE
				IF LEN(password) > 1
					hideword = LEFT(hideword,LEN(hideword)-1)
					password = LEFT(password,LEN(password)-1)
				ELSE
					hideword = ""
					password = ""
				ENDIF
			OTHERWISE
				hideword = hideword + "*"
				password = password + CHR(mkey)
			ENDCASE
		ENDDO
wait WINDOW hideword    && just so you can see
wait WINDOW password    && just so you can see
THe above is inside another loop of course prompting for the login name first and then checking the number of tries and incrementing it.

Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform