Data.DB.LoginDialogExProc
Delphi
LoginDialogExProc: function (const ADatabaseName: string; var AUserName, APassword: string; NameReadOnly: Boolean): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall (*LoginDialogExProc)(const System::UnicodeString ADatabaseName, System::UnicodeString &AUserName, System::UnicodeString &APassword, bool NameReadOnly);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
variable | public | Data.DB.pas Data.DB.hpp |
Data.DB | Data.DB |
Description
Set this variable to specify a method that will provide login information.
Set the LoginDialogExProc variable to specify a method that will provide login information.
For example, the Vcl.DBLogDlg unit sets this variable to a method that displays a dialog box to prompt for user name and password. If assigned, the TSQLConnection.Login
private method may call the LoginDialogExProc method to get the credentials. LoginDialogExProc is also used by TADOConnection.WillConnect and the TSession.DBLoginCallback
private method.