© 2007 ABBYY. All rights reserved.
4
Page component ................................................................................................................................................... 46
Variant component............................................................................................................................................... 47
Repetition component........................................................................................................................................... 47
Optional component ............................................................................................................................................. 47
Document component........................................................................................................................................... 47
Descriptive multipage rule language ........................................................................................................................................................................................ 48
The Value of a multipage rule............................................................................................................................... 48
The verity of a multipage rule............................................................................................................................... 48
One–dimensional constant................................................................................................................................... 48
Multi–dimensional constant ................................................................................................................................. 49
Page field reference............................................................................................................................................... 49
MR document reference ........................................................................................................................................ 49
Dimension matching............................................................................................................................................. 49
Type conversion ...................................................................................................................................................................................................................................... 50
Binary operators: + , – , / , * , ^ , & , Or , And , = , < , <= , > , >= , <> , In , Like , Mod.................................. 50
Unary operators: – , ! ........................................................................................................................................... 51
Zero–argument operators: Now, Date.................................................................................................................. 51
Type conversion operators: CDbl, CBool, CStr, CLng, CDate................................................................................ 51
Packing operators: Sum, Prod, Avg, Max, Min, Count, First, Last, NumMax, NumMin, Same, Unique................ 51
String processing operators: UCase, LCase, Len, Trim .......................................................................................... 52
Part–of–date operators: Year, Month, Day.......................................................................................................... 52
IsError operator .................................................................................................................................................... 52
Error operator....................................................................................................................................................... 52
Abs operator.......................................................................................................................................................... 52
Formatting operator: Format ................................................................................................................................53
Progression operators: Inc, Dec, Mult ....................................................................................................................53
Cut operator: SubArray..........................................................................................................................................53
Substring cut operator: SubStr ...............................................................................................................................53
Selection operator: IIf............................................................................................................................................ 54
Substring replace operator: Replace ..................................................................................................................... 54
Data creation operator: DateSerial ...................................................................................................................... 54
Glue operator: Array............................................................................................................................................. 54
VBScript for ABBYY FormReader Enterprise Edition................................................................................................................................................... 54
General scope........................................................................................................................................................ 54
Creating custom functions by using the Form Page Access API............................................................................. 54
Support for custom verification rules and error messages.................................................................................... 58
Sequence of calculating the form field values ....................................................................................................... 58
Peculiarities of the script....................................................................................................................................... 58
Auxiliary function library ..................................................................................................................................... 58
Example of using the Form Data Access API ......................................................................................................... 59
How to modify the script ....................................................................................................................................... 59
Automation Export................................................................................................................................................................................................................................ 59
Export procedure.................................................................................................................................................. 60
ExportData argument........................................................................................................................................... 60
Glossary.......................................................................................................................................................................................................................................................... 64
Hotkeys........................................................................................................................................................................................................................................................... 65
Scanning Station hotkeys ...................................................................................................................................... 65
Verification Station hotkeys................................................................................................................................... 66