MatchesEditMask (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

Returns True if the ASCII data in the object matches the given edit mask, and False otherwise.

This method invokes the OCR for AnyDoc edit mask routine. Following is a list of the edit mask characters for use in OCR for AnyDoc.

Character

Description

A

Alpha character only

9

Numeric character only

X

Alphanumeric character

@

Variable number of alpha characters only

Z

Variable number of numeric characters only

*

Variable number of alphanumeric characters

$

Variable number of numeric characters only in an amount field (including commas)

V

Implied Decimal Point (inserts a Decimal Point)

.

Fixed Decimal Point

Any other character in the edit mask, such as a dash, denotes a fixed character and is output. This method does not change the object's data, it determines if the data matches the given edit mask.

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, ZoneLink

Syntax

object.MatchesEditMask (strData, strMask)

Parameters

Object is a reference to the Line, Utility, or Zone object. For more information, see Line Object (page Line Object), Utility Object (page Utility Object), or Zone Object (page Zone Object).

MatchesEditMask is the command.

strData is

strMask is a string expression representing the edit mask to apply.

Example