TConnolly
Lifetime Supporting Member
In RSView we have the operators read in several pieces of information from a barcode reader. None of the bar codes have any tab, CR, LF, or any other terminating character on it. Right now we rely on the operator to read a bar code, press tab or mouse click to move to the next field, read the next bar code, repeat.
This is apparently too hard.
I've been asked to find a way so that focus will shift to the next field after a barcode is entered.
The same bar codes are used elsewhere in the process so adding a terminating character is probably not going to be an option.
To compound the issue, the barcode strings are variable length and can be from six to nine characters long.
The barcode reader attaches to the PC, it does not interface through the PLC so I'm limited to RSView and RSViewVBA commands.
I'm thinking about using a VBA form instead of RSView native text entry fields and once the input text box .text length is greater than five then if if doesn't change for say 1.5 seconds then set focus to the next text box.
I've never done any time delay events in VBA however and wonder if anyone has ever done this or if they have a better idea of how to handle the problem.
This is apparently too hard.
I've been asked to find a way so that focus will shift to the next field after a barcode is entered.
The same bar codes are used elsewhere in the process so adding a terminating character is probably not going to be an option.
To compound the issue, the barcode strings are variable length and can be from six to nine characters long.
The barcode reader attaches to the PC, it does not interface through the PLC so I'm limited to RSView and RSViewVBA commands.
I'm thinking about using a VBA form instead of RSView native text entry fields and once the input text box .text length is greater than five then if if doesn't change for say 1.5 seconds then set focus to the next text box.
I've never done any time delay events in VBA however and wonder if anyone has ever done this or if they have a better idea of how to handle the problem.
Last edited: