How to leave a blank line in INI file

How to leave a blank line in INI file

Postby Jeff Barnes » Tue Jul 29, 2008 6:22 pm

Hi Everybody,

When creating an INI file, how can I leave a blank line before the next section?

This is what I get now:

[REPORTS]
Doc_Name_Pos=0
Abg_Chart=0
[BACKUP]
Backup_Days=30
Backup_Date=29/07/2008

I would like to have:

[REPORTS]
Doc_Name_Pos=0
Abg_Chart=0

[BACKUP]
Backup_Days=30
Backup_Date=29/07/2008


It just makes it a bit easier to find things :D
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby JC » Tue Jul 29, 2008 7:34 pm

Hi Jeff.

I think this is not possible with the class or function. You must be change the file manually for this!

The file WIN.INI and the must of them don't have a blank line between sections

Code: Select all  Expand view  RUN
; for 16-bit app support
[fonts]
[extensions]
[mci extensions]
[files]
[Mail]
MAPI=1
[MCI Extensions.BAK]
aif=MPEGVideo
aifc=MPEGVideo
aiff=MPEGVideo
asf=MPEGVideo
asx=MPEGVideo
au=MPEGVideo
m1v=MPEGVideo
m3u=MPEGVideo
mp2=MPEGVideo
mp2v=MPEGVideo
mp3=MPEGVideo
mpa=MPEGVideo
mpe=MPEGVideo
mpeg=MPEGVideo
mpg=MPEGVideo
mpv2=MPEGVideo
snd=MPEGVideo
wax=MPEGVideo
wm=MPEGVideo
wma=MPEGVideo
wmv=MPEGVideo
wmx=MPEGVideo
wpl=MPEGVideo
wvx=MPEGVideo
m2v=MPEGVideo
mod=MPEGVideo
[MSUCE]
Advanced=0
CodePage=Unicode
Font=Arial
[FoxyTunesWMP]
MessageBoxAnswer=0


But, exists too the class TReg32(), I think it's very better than using ini files.
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Blanks in INI

Postby ukoenig » Tue Jul 29, 2008 9:05 pm

Hello,
why not to create empty Entry-sections
with different point-positions ( no to be used )

sample :
Code: Select all  Expand view  RUN

[REPORTS]
Doc_Name_Pos=0
Abg_Chart=0
[ .                  ]
[BACKUP]
Backup_Days=30
Backup_Date=29/07/2008
[  .                 ]



A point is not much visible.

Best Regards
Uwe :lol:
Last edited by ukoenig on Wed Jul 30, 2008 6:51 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to leave a blank line in INI file

Postby mmercado » Tue Jul 29, 2008 10:53 pm

Jeff Barnes wrote:When creating an INI file, how can I leave a blank line before the next section?
Hi Jeff:

Why don't create the ini file for the first time with No Entry Sections:
Code: Select all  Expand view  RUN
cIni := "[REPORTS]" + CRLF + CRLF + "[BACKUP]" + CRLF + CRLF + "[MORE]"
MemoWrit( "your.ini", cIni )
Regards.

Manuel Mercado
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Postby Jeff Barnes » Wed Jul 30, 2008 1:40 am

Thanks everybody.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 94 guests