Format (Property) - Format (Property) - AnyDoc - OCR for AnyDoc - AnyDoc/OCR-for-AnyDoc/Foundation-23.1/OCR-for-AnyDoc-Programming-Reference-Guide/VBScript-Objects-Properties-and-Methods/Individual-Object-Properties/Format-Property - Foundation 23.1 - Foundation 23.1

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License
ft:lastPublication
2023-11-17T13:24:58.960000
ft:locale
en-US

Description

The expected input format for a name going into the NameParser object.

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.Format = strMask

Parameters

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

Format is the command.

strMask is the input mask for the name (F = first name, M = middle name, L = last name). For instance, the input mask for "Smith, John Q" would be "LFM."

Example

NameParser.NameField = MyZone.Value

NameParser.Format = "LFM"

If NameParser.Process Then

strFirst = NameParser.FirstNameField

End if