Blank lines with PreferenceComment

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

The PreferenceComment() command is nice, but it would also be nice to be able to
insert blank lines into a preferences file... using PreferenceComment with a null
string currently shows ; in the file, which is a bit ugly, IMO.

Perhaps this command could be enhanced so that if a null string is passed to it,
it just inserts a blank line into the file? Anyone else agree?


PB - Registered PureBasic Coder

Edited by - PB on 15 May 2002 05:30:43
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re:

Post by MachineCode »

I second this. I need to put blank lines in my prefs file, but I just discovered that I can't use the Preferences lib to do it. Using PreferenceComment("") would be a great way to solve this, without breaking any existing functionality.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply