wPasswordChar Property (Edit Controls)

Applies to TestComplete 15.30, last modified on January 20, 2022


Some edit controls can work in the so-called password mode in which they do not display the actual text. They mask it by using a pre-defined character. The actual text is usually masked in password edit controls. The wPasswordChar property holds the character that is displayed instead of the actual characters.



Read-Only Property String
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

The character that is displayed instead of the actual characters in the edit control.

If the control’s text is not masked, the wPasswordChar property holds an empty string.


To get the actual text the edit control contains, use the wText property.


To view an example that demonstrates how to use the wPasswordChar property, see Working With Passwords Within an Edit Control.

See Also

Working With Passwords Within an Edit Control
wText Property (Edit Controls)

Highlight search results