With VBScript Management, you can create reusable components, such as functions, subroutines, and global variables for use in any OCR for AnyDoc project.
For example, if you create a global function, when you are adding VBScript to a template, your function appears in the Global Functions folder in the VBScript Functions window.
-
From the Management menu, click VBScript Management.
The VBScript Management window is displayed.
-
Click New. The Add New VBScript Function/Variable window is displayed.
- In the Name field, enter a unique name for the object with no spaces.
- In the Description field, enter the description to appear in VBScript Management when you click the object.
-
Select one of the following options:
-
Function
-
Subroutine
-
Global Variable (Numeric)
-
Global Variable (String)
-
- If you selected Function or Subroutine, in the Parameters field, enter the applicable parameters.
-
Click OK.
-
If you selected a Global Variable, the VBScript Management window is displayed with your variable listed.
-
If you selected Function or Subroutine, the VBScript window is displayed.
-
- Enter the appropriate return values and customize your code as necessary with comments.
- Click the Syntax Check button to check the syntax of the code.
-
Click OK.
The VBScript Management window is displayed with your function or subroutine name listed.
- Click Close.