AND51 wrote:I'd also appreciate it, if this works without spaces... IMHO this was requested several times before...
... and it should make an empty line after each section.. it's a widespread custom.
Actually, your're right. But removing the spaces is more important at the moment!
> This can be easily done with WinAPI
Haha, but this is not Linux compatible; IMHO the PB Team tries to only implement new features that are useful for all platforms.
AND51 wrote:> This can be easily done with WinAPI
Haha, but this is not Linux compatible; IMHO the PB Team tries to only implement new features that are useful for all platforms.
INI != Prefs
INI only on windows available and easy to use with API
pref a linux compatible without problems, what is the problem. Write INI with
the right function, not with the preference-lib
With spaces looks better than without
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
AND51 wrote:Haha, but this is not Linux compatible; IMHO the PB Team tries to only implement new features that are useful for all platforms.
Not sure what you found so funny, perhaps your sence of humour is a bit warped? :roll:
I was replying to the author of this thread. His question was about modifying an ini-file for Maxthon, which is a Windows program. And it could be solved with a one line of code. What's the problem?
eJan wrote:Going to use API until PB Win problem has been corrected?.
It's not a problem/bug that needs correcting. It's doing exactly what it's supposed to do. Though some will argue with Fred whether it is the right way to do it. Me being one of them But I think there are far more important things to implement so I simply get around these little things any way I can.
Has anyone tested the performance of WritePrivateProfileString_() on USB flash drives? It may take several seconds to write a small INI file (just tested with a 128 Mb FAT32 flash drive).
After users complained that one of my programs took 10 seconds to close on a flash drive, I abandoned the M$ functions.
OpenPreferences("Reader.ini")
PreferenceGroup("Reader")
For i=0 To 5
WritePreferenceInteger(StringField("Case.Match.Time.Path.Show.Hide",i+1,"."),i)
Next i
ClosePreferences()