wPasswordChar Property (Edit Controls)

Applies to TestComplete 15.68, last modified on October 03, 2024

Description

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.

Declaration

TestObj.wPasswordChar

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.

Remarks

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

Example

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

See Also

Working With Passwords Within an Edit Control in Desktop Windows Applications
wText Property (Edit Controls)

Highlight search results