RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBDataBase.OnLogin Event

Occurs when an application connects to a database.

Pascal
property OnLogin: TIBDatabaseLoginEvent;
C++
__property TIBDatabaseLoginEvent OnLogin;

Write an OnLogin event handler to take specific actions when an application attempts to connect to a database. By default, a database login is required. The current USER_NAME 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 USER_NAME 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 USER_NAME and PASSWORD values in LoginParams parameter of the event handler.

Note: OnLogin does not occur unless the LoginPrompt property is set to true.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!