Code: Select all
v10.90.0202 - 2012-03-22 10:33
+ SC gettoken enhanced: Now you can trim the returned string using a
new parameter "format":
Syntax: gettoken(string, [index=1], [separator=" "], [format])
format: Switches for the desired formatting. Can be freely
combined in any order.
t = trim returned string (crop leading and trailing spaces)
Example:
text gettoken("a, b ,c", 2, ","); //" b "
text gettoken("a, b ,c", 2, ",", "t"); //"b"
+ SC self enhanced: Added switch to return the caption of the
current script.
Syntax: self(info)
info:
caption = caption of the current script
Remarks:
A script's caption can be part of the script itself (typically
in a multi-script resource) but also be stated in its container,
e.g. a Catalog Item or a UDC.
Example for a Catalog script that tags the dropped items taking
the actual tags (cats, dogs) from the caption of the script:
Caption:
Set tag to dropped items: cats, dogs
Script:
// Caption example = Set tag to dropped items: cats, dogs
$tags = gettoken(self("caption"), 2, ":", "t");
tag $tags, <get drop |> , 1;
! Catalog: Dropping items onto scripts did not really work yet. Fixed.
* Raw View: LF (ASCII 10) is now executed in non-hex raw view.
It's a good idea to backup your complete XYplorer settings (menu File | Settings | Backup your Application Data Folder)
before running a new BETA version. This will also help in fixing any fresh bugs.
XYplorer Beta Club