without brackects.
put this into a checkbox for example:
Code: Select all
edit1.PasswordChar:='*' // this will change hello to *****
Code: Select all
edit1.PasswordChar:=#0; // this will return the password from ***** to hello
Code: Select all
if checkbox1.checked = true then
edit1.passwordchar := '*'
else
edit1.PasswordChar := #0;
edit1.PasswordChar:='*' what this does is it makes the origenal text turn into *'s making it unreadable.