PasswordChar Property

Applies to TestComplete 15.70, last modified on December 17, 2024

Specifies the character used to mask the characters entered in the component.

Declaration

componentPropObj.PasswordChar
Read-Write Property String
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxButtonEditProperties, TcxCurrencyEditProperties, TcxDateEditProperties, TcxTextEditProperties

Description

The PasswordChar property lets you get or set the character used to mask the text entered in the component. This property has effect only if the EchoMode property is “eemPassword”.

The PasswordChar property only affects how the text is displayed. The actual value of the Text property is not modified.

Property Value

A one-symbol string which contains the masking character. If PasswordChar holds a null character (the character with the zero decimal code -- #0 in DelphiScript, Chr (0) in VBScript, "\0" in JavaScript, JScript, Python, C++Script and C#Script), then the component uses the default masking character, usually "*".

See Also

EchoMode Property
Text Property

Highlight search results