lloydie-t
asked on
Working with ini files.
I have a weird one. I am using an ini file to hold the details of an aplication settings. For some reason the application does not use the ini file in the its path, but creates and uses one in the windows folder. Can I avoid this.
Code---------------------- ---------- ---------- ---------- ------
procedure TPortSetupMain.ProcessSett ings;
begin
portINI := TINIFile.Create(ExtractFil ePath('dat acollex1.e xe') + 'callcollex.ini');
portINI.WriteInteger('ComP ortSet', 'Speed', LongInt(BaudValues[Bauds.I temIndex]) * 10);
portINI.WriteInteger('ComP ortSet', 'Parity', Paritys.ItemIndex);
portINI.WriteString('ComPo rtSet', 'Databits', IntToStr(8-Databits.ItemIn dex));
portINI.WriteString('ComPo rtSet', 'Stopbits', IntToStr(Succ(Stopbits.Ite mIndex)));
portINI.Free;
-------------------------- ---------- ---------- ---------- ----
This maybe something to do with Windows XP!
Code----------------------
procedure TPortSetupMain.ProcessSett
begin
portINI := TINIFile.Create(ExtractFil
portINI.WriteInteger('ComP
portINI.WriteInteger('ComP
portINI.WriteString('ComPo
portINI.WriteString('ComPo
portINI.Free;
--------------------------
This maybe something to do with Windows XP!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I understand your thought mistake well. Everybody can be wrong sometimes, don't worry about....
ASKER
I already had that info, but I thought it meant that I should replace it with a file name.