metacard  

Re: whole(string) is in a fld

Ken Ray
Tue, 12 Jun 2007 13:19:25 -0700

On Tue, 12 Jun 2007 14:26:12 EDT, [EMAIL PROTECTED] wrote:

> I've returned to this little conundrum many times over the years but have  
> yet to solve it.
>  
> Any offers?

How about:

put wholeWordMatch("This is a test",long id of fld 1)

function wholeWordMatch pFindText,pFldRef
        find whole pFindText in pFldRef
        put the result into tResult
        find empty
        return (tResult <> "not found")
end wholeWordMatch

:-)

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
_______________________________________________
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard