• Welcome to ForumKorner!
    Join today and become a part of the community.

[CODE]Hide and Show password

djfshady

Member
Reputation
0
This code will make your normal editbox text go from , 'hello' to '*****'
without brackects.

put this into a checkbox for example:
Code:
edit1.PasswordChar:='*' // this will change hello to *****
Code:
edit1.PasswordChar:=#0; // this will return the password from ***** to hello

And if you wanted it in an actual checkbox on your forum it would be set out like this.
Code:
if checkbox1.checked = true then
edit1.passwordchar := '*'
else
edit1.PasswordChar := #0;

edit1.PasswordChar:=#0; what this basicly does is changes the text char from * back to the origenal text before the char was changed to *.

edit1.PasswordChar:='*' what this does is it makes the origenal text turn into *'s making it unreadable.
 
Top