Find/Replace woes

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


On 11/16/06 12:22 PM, "Adrian Williams" <adrian at clubtype.co.uk> 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?
> 
> SCRIPT: FIND BUTTON
> 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
> 
> SCRIPT: REPLACE BUTTON
> 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
> http://www.clubtype.co.uk
> adrian at clubtype.co.uk
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list