Replace command

David Coker davidocoker at gmail.com
Sat Apr 10 11:52:51 EDT 2010


Mark wrote:
>put "Jones" into word wordOffset("Piper",tContainer) of tContainer

then Michael added:

> put
>
> Peter Piper picked
> If Peter Piper picked again
>
> into fld 1
> -----------------------------
> -- use this script
> -----------------------------
> on mouseUp
> put wordOffset("Peter",fld 1) into x
> put "Jones" into word x of fld 1
> end mouseUp
> ----------------------

There seems to be an easy consensus, so that's the direction I'll take
my code...
Up until now I have never attempted using the wordOffset function for
the small things I've been building with Rev, so I guess it's time to
work it into my coding routines for the future.

Thank you folks so much for the advice and samples!

Best regards,
David C.



More information about the use-livecode mailing list