![]() |
|
#1
|
|||
|
|||
|
hi all
i want to know how to uses checkbox include module like this Quote:
br |
|
#2
|
|||
|
|||
|
What is the relation between a checkbox (True/False) and an inifile???
|
|
#3
|
|||
|
|||
|
Quote:
yes i mean uses inifilesi mean => [blackberry sample video] is caption on checkbox pattern=*medialoader_video* = is find path like C:\[name file] preset1=1 = is true preset2=0 = zerro is false preset3=0 thanks in advance br |
|
#4
|
|||
|
|||
|
Again, you have 1 checkbox and 3 boolean fields, and what to do with the pattern??
But here's an example on how to use the TIniFile, take the parts you like: Code:
procedure TForm21.Button1Click(Sender: TObject);
var
ini: TIniFile;
sections: TStrings;
index: Integer;
begin
index := SpinEdit1.Value;
ini := TIniFile.Create(ChangeFileExt(Application.ExeName, '.ini'));
sections := TStringList.Create();
try
ini.ReadSections(sections);
Label1.Caption := sections[index];
Label2.Caption := ini.ReadString(sections[index], 'pattern', '');
CheckBox1.Checked := ini.ReadBool(sections[index], 'preset1', False);
CheckBox2.Checked := ini.ReadBool(sections[index], 'preset2', False);
CheckBox3.Checked := ini.ReadBool(sections[index], 'preset3', False);
finally
sections.Free();
ini.Free();
end;
end;
|
|
#5
|
|||
|
|||
|
amazing
:norrit thanks norrit my problem is solved , ur code very very nice br GTunlocker |
![]() |
| Thread Tools | |
| Display Modes | |
|
|