Ray Yates
: mivascript at, pcinet d0t com
09/13/2011 19:34 p.m.
09/13/2011 19:34 p.m.
LastToken(): Retreive the last item in a list
Given a delimited list this function returns the last item (token) in the string in a delimited string.
<MvFUNCTION
NAME
="
LastToken
"
PARAMETERS
="
target var, delimiter
"
STANDARDOUTPUTLEVEL
=""
>
<MvFUNCTIONRETURN
VALUE
="
{ gettoken(l.target, l.delimiter, len(l.target) - len(glosub(l.target, l.delimiter, '')) + 1) }
>"
</MvFUNCTION>