RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.OnPassword Event

Occurs when an application attempts to open a Paradox table for the first time and the Borland Database Engine (BDE) reports insufficient access rights.

Pascal
property OnPassword: TPasswordEvent;
C++
__property TPasswordEvent OnPassword;

Write an OnPassword event handler to take specific action when an application attempts to open a password-protected Paradox table for the first time. To gain access to the Paradox table, the event handler must pass a valid password to the BDE. The event handler should call the AddPassword method to make the password available to the session. 

Use Continue to conditionally finalize adding the password. If Continue is set to True, the password addition is attempted. If set to False, the attempt to add the password is abandoned.

Note: If an OnPassword event does not exist, but the BDE reports insufficient access rights, the library displays a default dialog box that prompts for a password.
 

 

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