SetSampleRate (Method) - SetSampleRate (Method) - AnyDoc - OCR for AnyDoc - AnyDoc/OCR-for-AnyDoc/Foundation-23.1/OCR-for-AnyDoc-Programming-Reference-Guide/VBScript-Objects-Properties-and-Methods/Individual-Object-Methods/SetSampleRate-Method - Foundation 23.1 - Foundation 23.1

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License
ft:lastPublication
2026-10-21T08:07:08.864000
ft:locale
en-US

Description

Read-write. Returns the percentage (0-100) that the IsSample property randomly returns as true. This method is required if the IsSample property is used.

Applicable Events

AnyApp Pre-Application, AnyApp Post-Algorithm, AnyApp Post-Application, Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify

Syntax

object.SetSampleRate (#)

Parameters

Object is a reference to the Application object. For more information, see Application Object (page Application Object).

SetSampleRate is the command.

# indicates the percentage that is to be randomly returned as true.

Example

Application.SetSampleRate (40)

S = “”

For I = 1 to 10

If Application.IsSample = True then

S = s & “Y”

Else

S = s & “N”

End if

Next

MsgBox s