A number of built in commands both set the variable it, and return something to the
result function (such as "Cancel"). Is there a way of defining your own handler to do
the same thing?
An example might help:
on extractQuoted someText
local textFound
put "^.*" & kwote("(.*)") & ".*" into quoteReg
if matchText(someText, quoteReg, textFound) is false then
set it to textFound
return empty
else
set it to empty
return "Not found"
end if
end extractQuoted
This way I can use the same handler to destinguish between finding something that is
empty and "not finding it" - by checking the result.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.