Re: [U2] FW: Clearing Input Buffer
Like David Green, I would have suggested CLEARINPUT. I'm missing something: why all these other schemes people are talking about? On 2/22/2013 1:20 PM, Al DeWitt wrote: I have an input screen (built with System Builder) where data can either be entered manually or via a barcode scanner. The screen has 3 text boxes for input. The barcode option fills two of the text boxes and is supposed to land on the third box to await input. However, the scanner must be adding an extra return or something because when I scan it the third field's Process After executes. What can I do to flush the input buffer at the end of my validation routine on my second field...or is it better to do this on the Process Before on my third field. It's more of a nuisance but it would look more professional if I could make it clean. Thanks. Albert DeWitt, CPIM ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] FW: Clearing Input Buffer
In BASIC you can loop/repeat on SYSTEM(14) or INPUT var,-1 If it's Unix, check your stty settings for ocrnl and onlcr. This may give you an immediate fix. JayJay On 22 Feb 2013, at 19:20, Al DeWitt wrote: > I have an input screen (built with System Builder) where data can either be > entered manually or via a barcode scanner. The screen has 3 text boxes for > input. The barcode option fills two of the text boxes and is supposed to > land on the third box to await input. However, the scanner must be adding an > extra return or something because when I scan it the third field's Process > After executes. > > What can I do to flush the input buffer at the end of my validation routine > on my second field...or is it better to do this on the Process Before on my > third field. > > It's more of a nuisance but it would look more professional if I could make > it clean. > > Thanks. > Albert DeWitt, CPIM > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] FW: Clearing Input Buffer
You can also in the after routine of the second field, do a raw char input loop, until there are no further raw chars to input. -Original Message- From: David A. Green To: 'U2 Users List' Sent: Fri, Feb 22, 2013 11:54 am Subject: Re: [U2] FW: Clearing Input Buffer CLEARINPUT David A. Green (480) 813-1725 DAG Consulting -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Al DeWitt Sent: Friday, February 22, 2013 12:52 PM To: 'U2 Users List' Subject: Re: [U2] FW: Clearing Input Buffer How do I flush the buffer? What is the name or function I need? I can't put my finger on the right page in the Unidata manuals. Thanks. Al DeWitt > -Original Message- > From: Kevin King [mailto:ke...@precisonline.com] > Sent: Friday, February 22, 2013 1:25 PM > To: U2 Users List > Subject: Re: [U2] FW: Clearing Input Buffer > > I would think flushing the input buffer in either location would be > sufficient, assuming the problem is as you described. I've seen > situations where there's something in the second field, for example, > that is data stacking something new and the data stacking from the gun > is conflicting with that. If you're confident that's not the case, flushing the input before that third field should suffice. > > On Fri, Feb 22, 2013 at 12:20 PM, Al DeWitt wrote: > > > I have an input screen (built with System Builder) where data can > > either be entered manually or via a barcode scanner. The screen has > > 3 text boxes for input. The barcode option fills two of the text > > boxes and is supposed to land on the third box to await input. > > However, the scanner must be adding an extra return or something > > because when I scan it the third field's Process After executes. > > > > What can I do to flush the input buffer at the end of my validation > > routine on my second field...or is it better to do this on the > > Process Before on my third field. > > > > It's more of a nuisance but it would look more professional if I > > could make it clean. > > > > Thanks. > > Albert DeWitt, CPIM > > ___ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] FW: Clearing Input Buffer
CLEARINPUT David A. Green (480) 813-1725 DAG Consulting -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Al DeWitt Sent: Friday, February 22, 2013 12:52 PM To: 'U2 Users List' Subject: Re: [U2] FW: Clearing Input Buffer How do I flush the buffer? What is the name or function I need? I can't put my finger on the right page in the Unidata manuals. Thanks. Al DeWitt > -Original Message- > From: Kevin King [mailto:ke...@precisonline.com] > Sent: Friday, February 22, 2013 1:25 PM > To: U2 Users List > Subject: Re: [U2] FW: Clearing Input Buffer > > I would think flushing the input buffer in either location would be > sufficient, assuming the problem is as you described. I've seen > situations where there's something in the second field, for example, > that is data stacking something new and the data stacking from the gun > is conflicting with that. If you're confident that's not the case, flushing the input before that third field should suffice. > > On Fri, Feb 22, 2013 at 12:20 PM, Al DeWitt wrote: > > > I have an input screen (built with System Builder) where data can > > either be entered manually or via a barcode scanner. The screen has > > 3 text boxes for input. The barcode option fills two of the text > > boxes and is supposed to land on the third box to await input. > > However, the scanner must be adding an extra return or something > > because when I scan it the third field's Process After executes. > > > > What can I do to flush the input buffer at the end of my validation > > routine on my second field...or is it better to do this on the > > Process Before on my third field. > > > > It's more of a nuisance but it would look more professional if I > > could make it clean. > > > > Thanks. > > Albert DeWitt, CPIM > > ___ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] FW: Clearing Input Buffer
How do I flush the buffer? What is the name or function I need? I can't put my finger on the right page in the Unidata manuals. Thanks. Al DeWitt > -Original Message- > From: Kevin King [mailto:ke...@precisonline.com] > Sent: Friday, February 22, 2013 1:25 PM > To: U2 Users List > Subject: Re: [U2] FW: Clearing Input Buffer > > I would think flushing the input buffer in either location would be > sufficient, > assuming the problem is as you described. I've seen situations where there's > something in the second field, for example, that is data stacking something > new > and the data stacking from the gun is conflicting with that. If you're > confident > that's not the case, flushing the input before that third field should > suffice. > > On Fri, Feb 22, 2013 at 12:20 PM, Al DeWitt wrote: > > > I have an input screen (built with System Builder) where data can > > either be entered manually or via a barcode scanner. The screen has 3 > > text boxes for input. The barcode option fills two of the text boxes > > and is supposed to land on the third box to await input. However, the > > scanner must be adding an extra return or something because when I > > scan it the third field's Process After executes. > > > > What can I do to flush the input buffer at the end of my validation > > routine on my second field...or is it better to do this on the Process > > Before on my third field. > > > > It's more of a nuisance but it would look more professional if I could > > make it clean. > > > > Thanks. > > Albert DeWitt, CPIM > > ___ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] FW: Clearing Input Buffer
I would think flushing the input buffer in either location would be sufficient, assuming the problem is as you described. I've seen situations where there's something in the second field, for example, that is data stacking something new and the data stacking from the gun is conflicting with that. If you're confident that's not the case, flushing the input before that third field should suffice. On Fri, Feb 22, 2013 at 12:20 PM, Al DeWitt wrote: > I have an input screen (built with System Builder) where data can either > be entered manually or via a barcode scanner. The screen has 3 text boxes > for input. The barcode option fills two of the text boxes and is supposed > to land on the third box to await input. However, the scanner must be > adding an extra return or something because when I scan it the third > field's Process After executes. > > What can I do to flush the input buffer at the end of my validation > routine on my second field...or is it better to do this on the Process > Before on my third field. > > It's more of a nuisance but it would look more professional if I could > make it clean. > > Thanks. > Albert DeWitt, CPIM > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] FW: Clearing Input Buffer
I have an input screen (built with System Builder) where data can either be entered manually or via a barcode scanner. The screen has 3 text boxes for input. The barcode option fills two of the text boxes and is supposed to land on the third box to await input. However, the scanner must be adding an extra return or something because when I scan it the third field's Process After executes. What can I do to flush the input buffer at the end of my validation routine on my second field...or is it better to do this on the Process Before on my third field. It's more of a nuisance but it would look more professional if I could make it clean. Thanks. Albert DeWitt, CPIM ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users