WriteDate
WriteDateTime
WriteFloat
WriteInteger
WriteTime

var  GameIni: TIniFile;
begin
  Gameini := TIniFile.Create('FUNGAME.INI');
  with GameIni do
  begin
    WriteBool('Options', 'Sound', True);
    WriteInteger('Options', 'Level', 3);
    WriteBool('Configuration', 'ShowToolBar', True);
    Free;
  end;

解决方案 »

  1.   

    'Options', 'Sound'
    换成下面不就行了!'DBGridwidth' 'width0'
      

  2.   

    var
        inif:Tinifile;
    begin
        inif:=Tinifile.Create('E:\Colors.ini');
        inif.WriteString('DBGridwidth','width0',100);//改width0的值
        ...
        inif.free;
    end;
      

  3.   

    var
        inif:Tinifile;
    begin
        inif:=Tinifile.Create('E:\Colors.ini');
        inif.WriteString('DBGridwidth','width0',100);//改width0的值
        ...
        inif.free;
    end;
      

  4.   

    刚写错了
    inif.WriteString('DBGridwidth','width0',100);//改width0的值
    inif.Writeinteger('DBGridwidth','width0',100);//改width0的值
      

  5.   


    用WriteInteger函数
    如  WriteInteger('DBGridwidth', 'width0', 99);