find something, return false?

Jan Schenkel janschenkel at yahoo.com
Wed Nov 24 21:53:24 EST 2004


--- "J. Landman Gay" <jacque at hyperactivesw.com> wrote:
> On 11/24/04 3:58 PM, Simon Lord wrote:
> 
> > I'm trying to find a simple word in a field.
> > 
> > --> find string "link" in fld
> "EmbeddedIndexTemplate"
> > 
> > ... works like a charm.  It finds and highlights
> the word for me.  But 
> > if I ask for the result it returns empty.
> > 
> > --> if the result is empty then beep
> > 
> > ... am I using this correctly?  MC 2.5.1
> 
> Yes. If the string is found, the result is empty. If
> the string is not 
> found, the result is "not found" -- which is not
> empty.
> 
> -- 
> Jacqueline Landman Gay
> 

You can always check 'the foundChunk' after a find, to
determine where exactly the string was found.

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 


More information about the metacard mailing list