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)
Instead of creating a function trim(string, character=" ", position=both) allowing the above functionality by
trim(gettoken(string, index, separator))
and adding many more abilities, together with gettoken as well as many other types of usage, (for example with foreach, with getkey, and others,) you restrict this trim to only be used with/inside gettoken, and to only strip spaces left and right.
I'm a bit puzzled.
XYplorer Beta Club