RAD Studio VCL Reference
|
Brings up the database Login dialog to allow the user to connect to a database server.
function LoginDialogEx(const ADatabaseName: string; var AUserName: string; var APassword: string; NameReadOnly: Boolean): Boolean;
Boolean LoginDialogEx(const AnsiString ADatabaseName, AnsiString AUserName, AnsiString APassword, Boolean NameReadOnly);
Call LoginDialogEx to bring up the standard Login dialog box to prompt the user for a valid user name and password. The ADatabaseName parameter specifies the database for which access is being requested. The NameReadOnly parameter specifies whether the user can change the user name from within the dialog.
The dialog returns the user name and password as the AUserName and APassword parameters.
LoginDialogEx returns falseif the user cancels out of the dialog. If LoginDialogEx returns true, the application can attempt to connect to the database server using the supplied user name and password.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|