Re: Find/Replace woes

2006-11-18 Thread Adrian Williams
Herschel, This works fine if the only word in the edtText field matches the edtReplace field. But if there are ANY other words at all in edtText, nothing gets replaced. So how can Replace be made to actually replace all instances? Should this be Replace Text rather than Replace field? Thanks,

Re: Find/Replace woes

2006-11-18 Thread Eric Chatonet
Hi Adrian, May be you could use replaceText: on mouseUp local tFindStr,tRepStr,tText,tHtml,tCanReplace - put fld edtFind into tFindStr put fld edtReplace into tRepStr put fld edtText into tText put the htmlText of fld edtText into tHtml - put

Re: Find/Replace woes

2006-11-18 Thread Adrian Williams
Hi Eric, Thanks for your suggestion but... This code produces Could not find string. All buttons and field are on same card. There is text in both edtFind and edtReplace fields. So why is tFindStr not in tText ??? Adrian On 18 Nov 2006, at 09:28, Eric Chatonet wrote: Hi Adrian, May be you

Re: Find/Replace woes

2006-11-18 Thread Eric Chatonet
Hi Adrian, tText is the text of the field where you want to search/replace, right? If the search string is not in the text of this main field, the function will return Could not find string. Some comments about the CanReplace function: Each condition line is evaluated as one goes along: if

Re: Find/Replace woes

2006-11-18 Thread Adrian Williams
On 18 Nov 2006, at 15:32, Eric Chatonet wrote: Hi Adrian, tText is the text of the field where you want to search/replace, right? Yes but... If the search string is not in the text of this main field, the function will return Could not find string. Some comments about the CanReplace

Find/Replace woes

2006-11-16 Thread Adrian Williams
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

Re: Find/Replace woes

2006-11-16 Thread Jim Ault
On 11/16/06 9:22 AM, Adrian Williams [EMAIL PROTECTED] 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

Re: Find/Replace woes

2006-11-16 Thread Hershel Fisch
On 11/16/06 12:22 PM, Adrian Williams [EMAIL PROTECTED] 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

Re: Find/Replace woes

2006-11-16 Thread Hershel Fisch
On 11/16/06 12:22 PM, Adrian Williams [EMAIL PROTECTED] 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

Re: Find/Replace woes

2006-11-16 Thread Hershel Fisch
On 11/16/06 12:22 PM, Adrian Williams [EMAIL PROTECTED] 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

Re: Find/Replace woes

2006-11-16 Thread Hershel Fisch
On 11/16/06 12:22 PM, Adrian Williams [EMAIL PROTECTED] 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