Description
Used with the Application object to return vbTrue if the ASCII data in the object matches the given edit mask, and vbFalse otherwise. For more information, seeApplication Object.
Syntax
bMatch = Application.MatchesEditMask(strMask, Value)
Parameters
Value is a reference to a string object.
strMask is a string expression representing the edit mask to apply.
Remarks
This method begins the CAPTUREit edit mask routine. The OCR for AnyDoc edit mask characters are:
Character |
Purpose |
---|---|
A |
Alpha character only |
9 |
Numeric character only |
X |
Alphanumeric character |
@ |
Variable number of alpha characters only |
Z |
Variable number of numeric characters only |
* (asterisk) |
Variable number of alphanumeric characters |
$ (dollar sign) |
Variable number of numeric characters only in an amount field (including commas) |
V |
Implied decimal point (inserts a decimal point) |
. (period) |
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.
Example
bEditMask = Application.MatchesEditMask(“A999A999-99A”, “M537A264-22X”)