RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBPWDlg.PasswordDialog Function

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

Pascal
function PasswordDialog(const ASession: IDBSession): Boolean;
C++
Boolean PasswordDialog(const IDBSession ASession);

DBPWDlg

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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!