FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ini Files
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM

Ini Files

Posted: Tue Aug 28, 2007 08:56 AM

Hi,

Are there any standard functions available that could open an ini file and return to an array the details of a specified section?

for example if you had an ini file like this:

[Section 1]
Setting 1=Yes
Setting 2=No

[Section 2]
Setting 1=Yes
Setting 2=Yes

Is there a function where you can pass "Section 2" and it would return a multi dimensional array containing:
[Setting 1] [Yes]
[Setting 2] [Yes]

Hope the above is clear!!

Thanks in advance

Pete

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Ini Files

Posted: Tue Aug 28, 2007 09:24 AM

Peter,

Please review samples\TestIni3.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM

Ini Files

Posted: Tue Aug 28, 2007 10:27 AM

Thanks Antonio, i'll give that a go

Continue the discussion