Vcl.DBPWDlg.PasswordDialog

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PasswordDialog(const ASession: IDBSession): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall PasswordDialog(const Data::Db::_di_IDBSession ASession);

Properties

Type Visibility Source Unit Parent
function public
Vcl.DBPWDlg.pas
Vcl.DBPWDlg.hpp
Vcl.DBPWDlg Vcl.DBPWDlg

Description

Displays a dialog box that prompts the user for the password of a local password-protected table.

Use PasswordDialog to allow the user to enter a password for a password-protected Paradox or dBase table.

ASession is the interface of a component that represents the session onto which the user logs in. Typically, this is the interface of a TSession component.

If the user clicks OK in the dialog box, PasswordDialog returns true. Otherwise it returns false.

Note: When an application opens a Paradox or dBASE table that requires a password, the user is prompted to enter a password unless the Session already has a valid password for that table.

See Also