Topic: How To Read setting.ini and copy value to Form
How To use function save or read setting.ini for copy value to edit.text in form
by select
- script
- option
and setting etc
Easy For Beginner Student For Me
My Visual Database → Script → How To Read setting.ini and copy value to Form
How To use function save or read setting.ini for copy value to edit.text in form
by select
- script
- option
and setting etc
See attached example.
Thank You ehwagner
Easy Code For Education Read by sector sector type
procedure Form1_OnShow (Sender: string; Action: string);
var
ini: TIniFile;
begin
ini := TIniFile.Create(ExtractFilePath(Application.ExeName)+'settings.ini');
try
Form1.Edit1.Text := ini.ReadString('Script', 'Enabled', '');
Form1.Edit2.Text := ini.ReadString('Options', 'DBMS', '');
Form1.Edit3.Text := ini.ReadString('MySql', 'host', '');
Form1.Edit4.Text := ini.ReadString('MySql', 'port', '');
Form1.Edit5.Text := ini.ReadString('MySql', 'username', '');
Form1.Edit6.Text := ini.ReadString('MySql', 'database', '');
Form1.Edit7.Text := ini.ReadString('MySql', 'savepassword', '');
finally
ini.Free;
end;
end;
begin
end.
My Visual Database → Script → How To Read setting.ini and copy value to Form
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi