slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Mon Nov 19, 2007 5:40 pm Post subject: |
|
|
Let me explain simpler. Have a Edit, Button, and a TopenDialog.
On your button's onclick event, have:
| Code: |
procedure Tform1.Button1click(Sender:Tobject);
var
string : String;
begin
Writeini();
opendialog1.execute.
Edit1.text := (opendialog1.filename);
string:=IniFile.WriteString('File','Extension:',edit1.text);
end;
procedure Tform1.oncreate;
var
path : String;
begin
Path := IniFile.ReadString('File','Extension:',' ');
// Do w.e you want with the path string
end;
|
Make sure you declare the ini in the uses.
|
|