FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to leave a blank line in INI file
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
How to leave a blank line in INI file
Posted: Tue Jul 29, 2008 06: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 :-)
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
How to leave a blank line in INI file
Posted: Tue Jul 29, 2008 07: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

; 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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Blanks in INI
Posted: Tue Jul 29, 2008 09:05 PM
Hello,
why not to create empty Entry-sections
with different point-positions ( no to be used )

sample :
[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 :-)
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.
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: How to leave a blank line in INI file
Posted: 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:
cIni := "[REPORTS]" + CRLF + CRLF + "[BACKUP]" + CRLF + CRLF + "[MORE]"
MemoWrit( "your.ini", cIni )
Regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
How to leave a blank line in INI file
Posted: Wed Jul 30, 2008 01:40 AM

Thanks everybody.

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion