[Harbour-users] Ini files Manipulation
Massimo Belgrano
mbelgrano at deltain.it
Fri Feb 5 09:22:00 EST 2010
Hi Gilbert.
are present same functions to manage .ini files: HB_INI*
hb_IniRead()
hb_IniWrite()
hb_IniSetComment()
PROC MAIN()
LOCAL cIniFile, hIni, v
cIniFile := "test.ini"
hIni := HB_IniRead( cIniFile )
IF Empty( hIni )
? "Error: missing or wrong " + cIniFile
ELSEIF ! "MAIN" $ hIni
? "Error: missing MAIN section in " + cIniFile
ELSE
FOR EACH v IN hIni[ "MAIN" ]
? v:__enumKey(), "=>", v
NEXT
ENDIF
RETURN
2010/2/5 Gilbert Karweru <karweru at yahoo.com>:
> Has anyone implemented a simpler straightforward program functions for use of ini files from within a harbour application? Would be glad of any help.
>
> Thanks,
> Gilbert.
>
>
>
>
>
> ________________________________
> From: Massimo Belgrano <mbelgrano at deltain.it>
> To: Users of the Harbour compiler <harbour-users at harbour-project.org>
> Sent: Fri, February 5, 2010 2:23:52 PM
> Subject: Re: [Harbour-users] Compiling SVN Harbour tips needed
>
> Thanks to you also !
>
> 2010/2/5 smu johnson <smujohnson at gmail.com>:
>> Yes I saw that a while ago. I was thinking about going through it and
>> proofreading it, as there are many mistakes in it, etc.
>>
>> Maybe over the weekend I will have some time to do so. Thanks.
>>
>
>
--
Massimo Belgrano
More information about the Harbour-users
mailing list