USEGEAR

导航

unigui的ini文件读写【6】

procedure THeaderFooterForm.writerParas;
var
  IniFile : TIniFile;
begin
  try
    IniFile:=TIniFile.Create(TPath.GetHomePath+'\usegear.ini');

//    Edit_ServerIP.Text := IniFile.ReadString('Config','ServerIP','');
//    Edit_port.Text := IniFile.ReadString('Config','port','8099');
IniFile.WriteString(
'Config', 'ServerIP',Edit_ServerIP.Text); IniFile.WriteString('Config','port',Edit_port.Text); finally FreeAndNil(IniFile); end; end;

 

posted on 2018-09-20 09:08  USEGEAR  阅读(677)  评论(0编辑  收藏  举报