Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock User KeyBoard entry

Status
Not open for further replies.

TuzMwaura

Programmer
Feb 3, 2011
27
0
0
KE
Hi All,

What is the best approach to disable Keyboard entry and allow only barcode scanned entry mode only.

I am out of ideas after trying to use a hidden entry field.

Please help out

Tuz
 
Hello
I use time limit to finish barcode scan. There is no way user can type 11 numbers in 200ms.
 
Thanks,

I like your approach. I will try it out.

Tuz
 
Uniglass,

Do you have a sample timer code. Should I place it on case event field() ?

Tuz
 

I don't have access to code today. I think It was wery raw.

Code:
BCode      STRING(15)
ClearBCode BYTE
Armed      EQUATE(2)


---> WindowEvents AlertKey
IF len(clip(Bcode)) > 0 AND NOT ClearBCode  
 ClearBCode = TRUE
END

---> WindowEvents Timer (200ms)
IF ClearBCode 
   IF ClearBCode = Armed         ! clean on 2nd timer loop
      CLEAR(BCode)
      ClearBCode = FALSE
   ELSE
    ClearBCode = Armed   
   END
END



 
Thanks, Tried the code and worked like a charm.

I just had to do some little change.

Many thanks again

Tuz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top