The PasswordChar= method sets the character that is displayed in an edit control for which the PASSWORD or ES_PASSWORD flag is set.


The only argument is:


The character that is displayed for the typed characters.


The following example ensures that if the PASSWORD style was chosen for the edit control, the dollar sign ($) is displayed for each character typed in the edit control:

edit = MyDialog~GetEditControl("TEXT")
if edit == .Nil then return
edit~PasswordChar = "$"
say "The new password character is" edit~PasswordChar