Find/Replace woes

Hershel Fisch hershf at
Thu Nov 16 16:24:25 EST 2006

On 11/16/06 12:22 PM, "Adrian Williams" <adrian at> wrote:

> hello list,
> I have one field "edtText" that contains text to be found/replaced.
> One field for User to enter text to be found along with a button.
> One field for User to enter text the replace text along with a button.
> All are on the same card.
> The logic and syntax look correct to me, but nothing gets replaced in
> the edtText field.
> It does not generate an error. Anyone have any ideas?
> on mouseUp
>  --set text of field "edtReplace" to ""
Put "" into fld "edtReplace"
>  --put text of field "edtFind" into tFindText
> -- find string tFindText in field "edtText"
Find fld "edtFind" in fld "edtText"
> end mouseUp
> on mouseUp
>  --get the htmlText of field "edtText"

>  --replace text of field "edtFind" with text of field "edtReplace" in it
Replace fld "edtFind" with fld "edtReplace" in fld edtText"
>  --set the htmlText of field "edtText" to it
> end mouseUp

Whell this is my version ? Hershel
> Thanks,
> Adrian
> ______________________
> Club Type
> adrian at
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:

More information about the Use-livecode mailing list