EnableDecoder

Description

Enables or disables a particular decodeer.

Applies to

BarcodeScanner objects

Syntax

Integer scanner.EnableDecoder ( decoderID, fState )

Argument

Description

scanner

The scanner object for which you want to enable or disable a decoder

decoderID

Integer value of the decoder you want to enable or disable

fState

Boolean value that determines whether to enable or disable the decoder

Returns

Integer. Returns 1 for success or one of the following negative values if an error occurs:

Examples

Example 1

The following example enables the decoder with a decoder ID of 49:

li_rtn = l_scanner.EnableDecoder(49, true)

The decoder ID of 49 corresponds to the decoder for UPCE1 type bar codes.

See also