GetSupportedDecoders

Description

Retrieves the list of supported decoders.

Applies to

BarcodeScanner objects

Syntax

Integer scanner.GetSupportedDecoders ( 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 supported decoders

Returns

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

Usage

The supported decoders are defined by the firmware of the scanner device. The subset of decoders to use for a scanning operation can be obtained by a GetEnabledDecoders function call.

Examples

Example 1

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

integer li_rtn, li_firstID, li_secondID, l_IDs[ ]

li_rtn = l_scanner.GetSupportedDecoders(l_IDs)

li_firstID = l_IDs[1]

li_secondID = l_IDs[2]

See also