Sign in Join
FPDoc Onlineexperiment

PasswordBox function

In unit Dialogs

Displays a Password prompt with input masking.

Declaration

pascal
function PasswordBox(const ACaption: string; const APrompt: string)
: string

Description

PasswordBox is a specialized form of InputQuery. The editbox on the dialog box will mask the input. The only parameters are aCaption and aPrompt.

Behaves very similarly to the InputQuery function with MaskInput set to True; the difference is that the password that was typed in is returned as the result of the function (like InputBox).

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.