ScanRT

Moves the specified number of words to the right of the current word. Expands the search area up and down slightly in case the word is a little above or below the current word.

Syntax

bool ScanRT (StrParam)

Parameters

Numeric value of the number of words to be evaluated to the right of the current word or phrase.

Returns

True, if a word is found. Otherwise, False.

Level

Field level only.

Details

ScanRT (scan right) looks for a word in positions that are slightly above or below the line on which the current word or phrase is located.
Example
WordFind("Number")
ScanRT("1")    

In this example, the action finds the Number on the current page. Then, it moves one word to the right as it searches for a value.

To compensate for the possibility that this value might be printed slightly above or below the line on which Number was printed, the ScanRT action expands the area for the target value. When a page is recognized, then skewing or data layout might cause alignment problems. Words might not be recognized as being on the same line and might be recognized as being slightly above or below the current line.

This action compensates for alignment problems at the current word location. The action uses a calculation adjustment to determine which of the words to the right of the current word can be considered to be on the same line. It then remembers the location of the word that best fits this criteria. This new remembered location can then be used by subsequent actions.