Home All Groups Group Topic Archive Search About
Author
18 Apr 2006 11:47 PM
Adam Honek
When I write several sections to an INI file they're sll
one after each other without any line space in between.

Anything I should look out for? It's not the Trim() I'm
using on the values...

Adam

Author
19 Apr 2006 5:34 AM
Spam Catcher
"Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> wrote in news:
#tBdlJ0YGHA.3***@TK2MSFTNGP04.phx.gbl:

> When I write several sections to an INI file they're sll
> one after each other without any line space in between.
>
> Anything I should look out for? It's not the Trim() I'm
> using on the values...


Use &VBCRLF - this will add a line break.

How are you writing the INI file... is it with a custom parser?
Author
19 Apr 2006 11:35 PM
Adam Honek
I'm doing it as follows:

'Attempt to write the data to the INI file

Response = WritePrivateProfileString(sSectionName, sKeyName, sValue,
sFilePath)

I'll try what you suggested now.

Adam

Show quoteHide quote
"Spam Catcher" <spamhoneypot@rogers.com> wrote in message
news:Xns97AA100EB8076usenethoneypotrogers@127.0.0.1...
> "Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> wrote in news:
> #tBdlJ0YGHA.3***@TK2MSFTNGP04.phx.gbl:
>
>> When I write several sections to an INI file they're sll
>> one after each other without any line space in between.
>>
>> Anything I should look out for? It's not the Trim() I'm
>> using on the values...
>
>
> Use &VBCRLF - this will add a line break.
>
> How are you writing the INI file... is it with a custom parser?