Variables store data types, such as numbers and letters, which are subject to change during program execution. In OCR for AnyDoc, you can use both local and global variables. A local variable pertains to the specific routine in which it is defined, whereas a global variable can be accessed and modified by any statement in the program. In OCR for AnyDoc, a global variable could be used, for example, to pass information between pages in a batch. Use global variables with caution if you are using OCR for AnyDoc on a network. They persist independently on different workstations (in RAM) until OCR for AnyDoc is closed.
For VBScript to be able to interpret them correctly, variables must:
-
Begin with a letter
-
Include any combination of letters, numbers, and underscores
-
Be unique
Variables must not:
-
Contain illegal characters
-
Exceed 255 characters
-
Be a reserved word, that is a word that has special meaning to the VBScript compiler, such as If, Then, Else, or End or to OCR for AnyDoc, such as Form or This.