Re: Website and Help Typos
Posted: 17 Jun 2015 14:39
That decision is taking a rest, too.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Thanks.SammaySarkar wrote:::help 'idh_scripting_comref.htm#idh_sc_confirm';
"Pops message box with OK/Cancel, returns result." -- is no longer true. Perhaps: "Pops message box with specified buttons, returns an integer identifying pressed button."
"return 1 on OK, 0 on Cancel; exceptions see Buttons above." -- is redundant now. Perhaps just: "return See Buttons above."
Also: ~ "Default button index of initially focused button, counting from left/1: [Default] First button/2: Second button, and so on."
That does not fill me with a great deal of optimism, if I am honest.admin wrote:That decision is taking a rest, too.
:: help 'idh_scripting.htm#idh_scripting_udf';To have the CameraModel of the current file on the status bar, use this tweak:Code: Select all
::StatusBar3OnFile="<curname>, Camera: <prop CameraModel>" ^^ shouldn't be here, this is not a script.
all codeblocks in the new UDF and INCLUDE sections have extra one space indentation, unlike previous documentation which are not indented so unless necessary.• The first line of user function declarations can to be left-bound
[...]
• If no default value is set a missing arguments is initialized to "".
Code: Select all
renameitem("John");Code: Select all
sel f;
sel i;
renameitem("John");Code: Select all
sel f;
sel i;
rename b, 'John';Code: Select all
$folder = listpane(, , 2);
if (gettoken($folder, "count", "|") == 1) {
rename "b", "John", , $folder;
}Examples
echo tagitems(); //set Label of the focused item
In the example the value is omitted, so the field is retrieved but not set...value Tag value, which (depending on field) can be label name or ID, tag(s), comment, or data.
Empty string ('') is treated similar to "Remove Data".
If omitted, field is retrieved but not set.
Code: Select all
tagitems(, 1); //set Label of all selected items to 1
tagitems(, "Red"); //set Label of all selected items to "Red" (that Label has to exist, of course)
echo tagitems(); //retrieve Label of the focused item
tagitems(, ""); //remove any Labels of all selected items
tagitems("tag", "Rock,Disco"); //set Tags of all selected items to "Disco" and "Rock"
echo tagitems("tag"); //retrieve Tags of the focused item
tagitems("tag", ""); //remove any Tags of all selected items
tagitems("cmt", "Done."); //set Comment of all selected items to "Done."
tagitems("cmt", "Done.", "E:\Test\Test.txt"); //set Comment of "E:\Test\Test.txt" to "Done."
echo tagitems("cmt"); //retrieve Comment of the focused item
echo tagitems("cmt", , "E:\Test\Test.txt"); //retrieve Comment of "E:\Test\Test.txt"
tagitems("cmt", ""); //remove any Comments of all selected items
Code: Select all
tagitems("tags", "Rock,Disco"); //set Tags of all selected items to "Disco" and "Rock"
echo tagitems("tags"); //retrieve Tags of the focused item
tagitems("tags", ""); //remove any Tags of all selected items