FindLastKeyList

Locates the last occurrence of a word or phrase that matches one of the entries in a keyword file.

Syntax

bool FindLastKeyList (StrParam)

Parameters

The name of the Keyword text file. The file will contain a list of words or phrases, separated by new lines, that will be used for matching.
The file name can be provided in one of two ways:
  1. A full path name of the file, including the .key extension.
  2. The file name only, with no extension specified. The application will look in the process directory and the file must have a .key extension.
Smart parameters are supported.

Returns

True if at least one word on the page matches any word or pattern in the Keyword file. Otherwise, False.

Level

Page level.

Details

Opens the Keyword file you specify as a parameter, then checks the words or phrases on the current page against the keywords in the list to find a match. The current page will be searched to find the last occurrence of word or phrase. The location of the last occurrence word or phrase that matches an entry in the keyword file will be remembered so it can be utilized by subsequent actions. Word matching is case sensitive.

To improve matching, this action automatically adjusts the search criteria to allow for common character substitutions. For example, if the list includes "will" and the recognition read "wi11", a match will still occur.

Common substitutions include characters: B8, Z2, S5, oO0 and iItl1.

Example
FindLastKeyList("InvNum")

This action searches the current page for the last instance of a match with the first keyword in the Keyword file (InvNum.key). If successful, the search stops and remembers the location of that word for subsequent actions; if not, the action continues searching using the next word in InvNum.key, matching the last occurrence of the word, repeating this search pattern until a match is found, or until there are no more keywords.