Occurs when an application connects to a database.
property OnLogin: TDatabaseLoginEvent;
__property TDatabaseLoginEvent OnLogin;
If there is no OnLogin event handler, the current UserName is read from the Params property, and a standard Login dialog box opens. The dialog prompts for a user name and password combination, and then uses the values entered by the user to set the UserName and PASSWORD values in the Params property. These values are then passed to the remote server.
Applications that provide alternative OnLogin event handlers must set the UserName and PASSWORD values in LoginParams. LoginParams is a temporary string list and is freed automatically when no longer needed.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!