GetEnabledDecoders

Description

Retrieves the list of enabled decoders.

Applies to

BarcodeScanner objects

Syntax

Integer scanner.GetEnabledDecoders ( intDecoders [ ] )

Argument

Description

scanner

The scanner object that is associated with the scanner for which you want to obtain a list of enabled decoders

intDecoders [ ]

Array of integers that correspond to the decoder IDs of the enabled decoders

Returns

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

Usage

The enabled decoders are a subset of supported decoders. Decoders must be enabled for use in a scanning operation.

Examples

Example 1

The following example places the IDs of all the enabled decoders in an array:

integer li_rtn, li_firstID, li_secondID, l_IDs[ ]

li_rtn = l_scanner.GetEnabledDecoders(l_IDs)

li_firstID = l_IDs[1]

li_secondID = l_IDs[2]

See also