Topic: How To Remove Save Password ☑
How To Edit Script Remove
Save Password ☑
Stat Dialog connect MySQL
or
Save Password Visible := False ?
Easy For Beginner Student For Me
My Visual Database → Script → How To Remove Save Password ☑
How To Edit Script Remove
Save Password ☑
Stat Dialog connect MySQL
or
Save Password Visible := False ?
Hi,
In the final section of the script (begin end.) add after "begin":
begin
{$MySQL disable_connectdialog}
frmMySQLLogin.chbSavePassword.Visible := False; // Make invisible
frmMySQLLogin.chbSavePassword.Checked := False; // If necessary, uncheck/check the password saving box.
frmMySQLLogin.ShowModal;
...
end.
In the OnShow event of your main form, add after "begin":
try
MainFrm.MySQLConnection.Connect;
except
ShowMessage('Dont connect');
MainFrm.Close;
end;
if MainFrm.MySQLConnection.Connected then
begin
UpdateDatabase(''); // Required
end;
...
Decided to add another solution.
It is undocumented.
By default, the login window for the database is triggered before the script is executed. The previous solution was related to this. This solution allows you to execute part of the script and then call the login window. The solution is undocumented. Like the previous solution, place it in the (begin end.) section immediately after begin. Try it, test it...
begin
{$MySQL run_script_before_connect}
frmMySQLLogin.chbSavePassword.Visible := False;
frmMySQLLogin.chbSavePassword.Checked := False;
...
end.
It is lowdocumented
https://myvisualdatabase.com/forum/view … 367#p33367
I admit, I had never read about them until now..
Decided to add another solution.
It is undocumented.By default, the login window for the database is triggered before the script is executed. The previous solution was related to this. This solution allows you to execute part of the script and then call the login window. The solution is undocumented. Like the previous solution, place it in the (begin end.) section immediately after begin. Try it, test it...
begin {$MySQL run_script_before_connect} frmMySQLLogin.chbSavePassword.Visible := False; frmMySQLLogin.chbSavePassword.Checked := False; ... end.
My Visual Database → Script → How To Remove Save Password ☑
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi