FindPhrase (Method) - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

Description

Searches the raw tokens on the current data image and returns the offset of the raw token if it is found. Otherwise, it returns zero. If the phrase passed in is an empty string, the function searches for the last valid search phrase, but it starts after the last occurrence it previously returned.

Applicable Events

AnyApp Pre-Application, AnyApp Post-Algorithm, AnyApp Post-Application, Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify

Syntax

object.FindPhrase (strPhrase)

Parameters

Object is a reference to the Application object. For more information, see Application Object (page Application Object).

FindPhrase is the command.

strPhrase is the search string.

Example

nOffset = Application.FindPhrase("CUSTOMER")