Handler/Function with same name
Mark Wieder
mwieder at ahsoftware.net
Mon Dec 12 13:48:22 EST 2005
Mark-
Sunday, December 11, 2005, 4:50:29 PM, you wrote:
> Do they not do the same thing?
> I see that the handler modifies the string passed to it, while the
> function
> returns a similarly modified copy of the string passed to it, but
> that was
> the point of it.
> Or am I missing something?
No, that's exactly my point.
trim myString
put trim(myString) into someOtherString
will modify two different strings. In the incarnation of this
operation as a function myString is not modified, and it's not
immediately apparent why not, since the command version does modify
it.
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list