SetUDV method

Applies to

Important: Read the entire help topic before implementing UDVs.

Description

Sets a user-defined variable (UDV) to a string value.

Use this method to assign up to three variables to forms, sets, or batches. You can then select these forms, sets, or batches in the FORMS Sorting forms to process dialog when you create an Interpret, Verify, and/or Transfer job description—or use the Set(Itrp/Veri/Tran)UDV method.

You need to know this

If you want the see the UDV values in the output, insert these variables in the transaction description:

Limitations

Syntax

Object.SetUDV(UDVNo, UDVValue)

Part

Data type

Description

Object

Object

A Form, Set, or Batch object.

UDVNo

Integer

UDV number 1, 2 or 3.

UDVValue

String

A character string with a maximum length of 79. Longer strings are truncated to 79 characters.

Return value

0 if OK. -1 if UDVNo is less than 1 or greater than 3. See Event return value constants.

Classic method

None.

GetUDV method