Problems with Setkey [and Getkey() ]
Posted: 12 Feb 2012 23:07
I have "User button 1" in toolbar, named "Copy to Other Pane", with command #804.
(In real it's more complicated - but I've reduced it to this.)
This leads in XYplorer.ini in section [CustomButtons] to the key=value
1=""Copy to Other Pane||0" #804;"
Note the 2 leading double-quotes, and the single double-quotes in the middle and at the end!
(No - it's not from me: XY created that...)
Now I try to re-create this key/value in a new installation with the Setkey command - but I can do what I want: I can't get it to set the correct combination of quotes! Things I've tried:
...and others.
The first is formally wrong.
Formally + in contents I'd expect the 2nd (correct double-quotes quoted in single quotes) and 3rd (whole string double-quoted, and all quotes inside doubled) version to be correct, while the 4th should (and does) lack the outer quotes.
Hoping to get a hint I tried Getkey - but it returned the value wrong: without the outer quotes :
"Copy to Other Pane||0" #804;
In the moment I'm out of ideas
Can someone help?
(In real it's more complicated - but I've reduced it to this.)
This leads in XYplorer.ini in section [CustomButtons] to the key=value
1=""Copy to Other Pane||0" #804;"
Note the 2 leading double-quotes, and the single double-quotes in the middle and at the end!
(No - it's not from me: XY created that...)
Now I try to re-create this key/value in a new installation with the Setkey command - but I can do what I want: I can't get it to set the correct combination of quotes! Things I've tried:
Code: Select all
Setkey ""Copy to Other Pane||0" #804;", 1, "Custombuttons";
Setkey '""Copy to Other Pane||0" #804;"', 1, "Custombuttons";
Setkey """""Copy to Other Pane||0"" #804;""", 1, "Custombuttons";
Setkey "Copy to Other Pane||0" #804;", 1, "Custombuttons;
Setkey """Copy to Other Pane||0"" #804;", 1, "Custombuttons";
The first is formally wrong.
Formally + in contents I'd expect the 2nd (correct double-quotes quoted in single quotes) and 3rd (whole string double-quoted, and all quotes inside doubled) version to be correct, while the 4th should (and does) lack the outer quotes.
Hoping to get a hint I tried Getkey - but it returned the value wrong: without the outer quotes :
"Copy to Other Pane||0" #804;
In the moment I'm out of ideas
Can someone help?