*WORDI()

Syntax

Result_Flag as L = *WORDI( Search_In_String as C, Find_String as C )

Argument

Description

Result_Flag

TRUE (.T.) if the word was found; otherwise FALSE (.F.).

Search_In_String

The character string to examine.

Find_String

The word to find within Search_In_String.

Description

The *WORDI() function scans the character Search_In_String and returns TRUE if the Find_String can be found in it. A word is any sequence of characters separated on either end by spaces, punctuation marks, or the beginning or end of the field. Case insensitive.

Supported By

Alpha Five Version 5 and Above

Example

? *wordi("this is a sentence", "is")

= .T.

See Also

Character Search Functions