Registriert seit: 26. Okt 2005
82 Beiträge
Delphi 7 Enterprise
|
Re: Wo ist der Fehler? (ini datei auslesen)
2. Apr 2006, 18:28
Und hier der Speichern-Source
Delphi-Quellcode:
try
SettingsIni := TIniFile.create(
ExtractFilePath(ParamStr(0)) + 'Settings.ini');
SettingsIni.WriteString('name','name',SetName.Text);
if SetPW1.Text = SetPw2.Text then
SettingsIni.WriteString('password','password',SetPW1.Text)
else messagedlg('Please verify the entered passwords!',
mterror, [mbOK],0);
SettingsIni.WriteString('reason','reason',SetReason.Text);
messagedlg('Settings saved successfully!',
mtinformation, [mbOK],0);
except
messagedlg('Settings could not be saved!',
mterror, [mbOK],0);
end;
SettingsIni.Free;
|
|
Zitat
|