IsCurrency
Determines whether the value of the located word is a currency value. The value contains numbers and includes a two-digit decimal amount.
Syntax
bool IsCurrency ()
Parameters
None.Returns
True if the located value is currency. Otherwise, False.Level
Page or field level.Details
Using the current location of a previously located word or phrase, this action determines if the characters are in a valid currency format and are a valid currency value. By testing the type of characters recognized in the current word or phrase, it is possible for an application to determine it has located the type of data that is required, and then take subsequent actions based on the result of the test. Regardless of being called at the page or field level, this action operates on the recognized text for the current page.Attention: This action is NOT dynamic locale aware
and uses a simple regex and separator character test.
- Example
If the recognized value of the word or phrase is: 12.00 IsCurrency()returns TRUE If the recognized value of the word or phrase is: 12,00 IsCurrency() returns TRUE If the recognized value of the word or phrase is: 1200 IsCurrency() returns FALSE If the recognized value of the word or phrase is: 1,200.00 IsCurrency() returns TRUE If the recognized value of the word or phrase is: $12.00 IsCurrency() returns TRUE