WINCHR

Function

WINCHR inputs a single character from the optical wand.

Syntax

WINCHR N

where N is a numeric variable.

Examples

100 WINCHR N
110 PRINT N

This will input a single character from the bar-code wand and display it on the LCD screen.

Remarks

This function acts exactly like INCHR, but with the optional bar-code wand. The value is returned from the bar-code exactly like a keyboard input.

If a multiple character bar code is scanned then WINCHR will return the first character and the rest of the code will be ignored.

As with WINPUT if any key is pressed prior to the bar code input, then the input is taken from the keyboard instead.

The bar code format must first be selected using the WAND verb. The relevant wand firmware must be resident in HUNTER as a system file. If it is not, then a system file error will result.