Create VBScript Procedures/Variables - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

OCR for AnyDoc
Foundation 23.1

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.

  1. From the Management menu, click VBScript Management.

    The VBScript Management window is displayed.

  2. Click New. The Add New VBScript Function/Variable window is displayed.
  3. In the Name field, enter a unique name for the object with no spaces.
  4. In the Description field, enter the description to appear in VBScript Management when you click the object.
  5. Select one of the following options:
    • Function

    • Subroutine

    • Global Variable (Numeric)

    • Global Variable (String)

  6. If you selected Function or Subroutine, in the Parameters field, enter the applicable parameters.
  7. 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.

  8. Enter the appropriate return values and customize your code as necessary with comments.
  9. Click the Syntax Check button to check the syntax of the code.
  10. Click OK.
    The VBScript Management window is displayed with your function or subroutine name listed.
  11. Click Close.