replaceText

Richmond richmondmathewson at gmail.com
Wed Jun 13 06:07:35 EDT 2012


Thanks both: Mark and Igor.

On 06/13/2012 12:35 PM, Mark Schonewille wrote:
> 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.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list