Skip to main content
Kofax

Execute function in Validation or Verification Module but not both in .NET Validation Script

11035

QAID # 11035 Published

Question / Problem:

In a Kofax Capture VB.NET Validation Script, I want to perform different operations based on whether I am in either the Validation or Verification module.

How can I accomplish this?

Answer / Solution:

The Application object implements an enumeration containing values for determining in which module you are executing:

  • AppicationEnum.Validation
  • AppicationEnum.Verification
You can implement this enumeration like so:
If Application = ApplicationEnum.Validation Then
'Do some Validation stuff
Else
'Do some Verification stuff
End If

Applies to:

Product Version
CAPTURE 10.0
  10.1
  10.2
  11.0