Flush

Description

Clears a scanner’s internal buffers without detaching from scanner firmware or unloading scanner DLLs.

Applies to

BarcodeScanner objects

Syntax

Integer scanner.Flush ( )

Argument

Description

scanner

The scanner object that is associated with the scanner you want to flush

Returns

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

Usage

Use the Flush function to make sure the scanner buffers are clear after aborted scans.

Examples

Example 1

The following example flushes the internal buffers of the scanner device associated with the BarcodeScanner object:

li_rtn = l_scanner.Flush()

See also

Close