Icon AddPassword Method

procedure AddPassword(const Password: String)


Call the AddPasssword method to add a password to the session for use when accessing encrypted database tables. If an application opens a table using a TDBISAMQuery or TDBISAMTable component that is encrypted with a password and the session does not currently contain the password in memory, then the session will first try to trigger the OnPassword event. If the OnPassword event does have an event handler assigned to it, then DBISAM will display a password dialog prompting the user for a valid password before allowing access to the encrypted table.

Information If an application defines an OnPassword event handler, the handler should call the AddPassword method to add passwords for the session.