Page 1 of 1

Fill password in Login form for TMyConnection

Posted: Mon 03 Dec 2018 11:37
by rahucha
Hi,

I'm creating my database as follow:

Code: Select all

    ConnectDialog := TMyConnectDialog.Create(Sender);
    FDatabaseServer := TMyConnection.Create(Sender);
    FDatabaseServer.ConnectDialog := ConnectDialog;
    FDatabaseServer.Connected := False;
    FDatabaseServer.Options.AllowImplicitConnect := True;
    FDatabaseServer.Options.UseUnicode := True;
    FDatabaseServer.LoginPrompt := True;
It asks for the Login details and it's autofilled, except the password field. Is it possible to also auto-fill the password? So the user doesn't need to enter the password each time?

Thanks!

Re: Fill password in Login form for TMyConnection

Posted: Tue 04 Dec 2018 10:15
by ViktorV
To solve your task, you can use the following code:

Code: Select all

  FDatabaseServer.ConnectDialog.SavePassword := True;

Re: Fill password in Login form for TMyConnection

Posted: Fri 07 Dec 2018 16:03
by rahucha
Thanks a lot!

Re: Fill password in Login form for TMyConnection

Posted: Mon 10 Dec 2018 10:48
by ViktorV
It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about our products.