RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBLogDlg.RemoteLoginDialog Function

Brings up the database Login dialog to allow the user to connect to a database server.

Pascal
function RemoteLoginDialog(var AUserName: string; var APassword: string): Boolean;
C++
Boolean RemoteLoginDialog(AnsiString AUserName, AnsiString APassword);

Call RemoteLoginDialog to bring up the standard Login dialog box to prompt the user for a valid user name and password. 

The dialog returns the user name and password as the AUserName and APassword parameters. 

RemotLoginDialog returns false if the user cancels out of the dialog. If RemoteLoginDialog returns true, the application can attempt to connect to the database server using the supplied user name and password.

Note: When building cross-platform applications in C++, add QDBLogDlg.pas unit (instead of DBLogDlg) to your project if you want the default Database Login dialog to display at runtime. QDBLogDlg does not need to be included if your C++ application includes a DBGrid component.
 

 

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