Page 1 of 1

Saving ini settings

Posted: 11 May 2018 16:07
by klownboy
I wouldn't call this a bug, but I figured I'd point it out. If you don't double quote the ini file name when savings settings for an ini file, specifically SC savesettings, XYplorerUserKen.ini the result will be XYplorerUserKenini with no dot. The examples in the help file do show the double quotes but I wanted to point out they're important here. I had no spaces in the ini file name in my test examples. I noticed this when saving settings for a specific XY ini file that I use in a second instance of XYplorer. Thanks.

Re: Saving ini settings

Posted: 11 May 2018 16:09
by admin
[moved to tips and tricks]

You know, actually any string should be quoted in scripting, and this is no exception. :)

Re: Saving ini settings

Posted: 11 May 2018 16:36
by klownboy
Sorry Don, I should have put this in Tips. I didn't have any spaces in the file name and I provided the full path as well which also had no spaces, so I initially though it was odd, but as you say and the help file states, use quotes. Thanks.

Re: Saving ini settings

Posted: 11 May 2018 16:56
by admin
Let me add that I personally and silently often regretted that I followed that bizarre PHP design choice to use the dot (.) as string concatenator. I really should have taken the plus (+) or the ampersand (&). Well, too late.