replaceText
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed Jun 13 05:35:36 EDT 2012
Hi Richmond,
ReplaceText is a function, not a command and you can't replace anything in a literal but only in a container.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com
On 13 jun 2012, at 11:19, Richmond wrote:
> put fld "TEXXT" into TEXXT
> if TEXXT contains "sugar" then
> replaceText ("sugar","sugar","sweetener")
> end if
> put TEXXT into fld "TEXXT"
>
> doesn't work.
>
> The dictionary entry does NOT say something like this:
>
> replaceText TEXXT ("sugar","sugar","sweetener")
>
> ----------------------
>
> tried:
>
> if fld "TEXXT" contains "sugar" then
> replaceText ("sugar","sugar","sweetener")
> end if
>
> no joy there either.
>
> ???
>
> Richmond.
More information about the use-livecode
mailing list