Error getting tags :
error 404Error getting tags :
error 404 foundText | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
foundText
Basics
Expander triangle
Type
Function
Syntax
the foundText foundText()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the text located by the most recent findcommand.
Examples

the foundText
put the foundText into whichWord

Additional Comments
Expander triangle

Use the foundText function to determine which word in the search string was found, and whether it matches a whole word or a portion of a word.

Value:

The foundText function returns the text that was found.

Comments:

Depending on what form of the find command you used, the text found may be different from the text you searched for. For example, the command

find "hurl"

can find any word that starts with the string "hurl", such as "hurling" or "hurler". In this case, the entire word--not just the portion specified in the find command--is surrounded by a box, and the foundText returns the entire word.

The foundText function is cleared when the text selection moves into the foundField or when the current card is closed. At the same time, the box the find command draws around the found text disappears. If there is no box, the foundText function returns empty.

To get the location of the text that was found, use the foundChunk function.

User Comments
Expander triangle