TAdsConnection.OnLogin

TAdsConnection

Advantage TDataSet Descendant

OnLogin occurs when an application connects to a database.

Syntax

type TAdsDatabaseLoginEvent = procedure( AdsConnection: TAdsConnection;

var Username : String;

var Password : String ) of object;

 

property OnLogin: TAdsDatabaseLoginEvent;

Description

Write an OnLogin event handler to take specific actions when an application attempts to connect to a database. Values returned in the Username and Password parameters are passed to the Advantage Database Server in the connection attempt.

The OnLogin event is only fired if the TAdsConnection.LoginPrompt property is set to True.

Note Storing hard-coded user name and password entries as property values or in code for an OnLogin event handler can compromise server security.

See Also

LoginPrompt

Username

Password