Article View: borland.public.delphi.nativeapi.win32
Article #331Re: TIniFile Problem
From: John Herbster
Date: Sat, 28 Jun 2008 14:30
Date: Sat, 28 Jun 2008 14:30
23 lines
1759 bytes
1759 bytes
"Monzer George Yazigi" <monzer_yazigi@hotmail.com> wrote
> I have the following code, which create an INI file variable, and read a
> section out of the INI file. edAttach and edPicsPath are TEdit controls.
> S:=TStringList.Create;
> FName:=ExtractFilePath(ParamStr(0))+'file.ini';
> IniF:=TIniFile.Create(FName);
> IniF.ReadSection('FILLERSETS',S);
> edAttach.Text:=S.Values['Attachments'];
> edPicsPath.Text:=S.Values['Images'];
> When debugging, the FName is set properly to the correct full file path.
> But when reading the section and its values, its always empty.
> ...
> Somehow, IniF is not created properly.
Monzer,
Have you updated, closed, or freed the INI file and
tried looking at it with NotePad?
Rgds, JohnH
Technical Details
Message-ID:
<48664b04@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<4866297c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 14438e,b1f0a04eaabfb002 X-Google-Attributes: gid14438e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "John Herbster" <herb-sci1_AT_sbcglobal.net> Newsgroups: borland.public.delphi.nativeapi.win32 References: <4866297c@newsgroups.borland.com> Subject: Re: TIniFile Problem Date: Sat, 28 Jun 2008 09:30:33 -0500 Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 70.241.128.203 Message-ID: <48664b04@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214663428 70.241.128.203 (28 Jun 2008 07:30:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail