VeriSelectBatch(AvailableBatches As String) As Long

Description

This event is fired after the JobStarted event, but before the Verify session actually starts. It allows the user to specify batch numbers to be verified, and it is only fired if Select each batch is selected in the job description. (To access that option, click Sorting on the Verify tab of the Job description dialog.) The list of available batches is passed as an argument to the method.

The event handler can set the batches by using SetBatchSelection on the Application object.

Return values

Return value

Description

EV_OK

Normal return. The Select batch dialog appears (API selection skipped).

EV_OK_ABORT 

The Select batch dialog is skipped.

EV_ERROR

Execution stops and an error is reported.

Suggested usage

Use this event to automatically select batches to verify, or to display your own selection dialog.

Remarks

Only fired in the Verify module.

Note that the Job, BatchDef, and FormDef objects are available even though this event is fired on application level in Verify.

Events in Verify