We use cookies to ensure that we give you the best user experience on our website. If you want to find out more about the cookies we use, you can access to our Privacy Policy here. By continuing your visit to our website, we'll assume you consent to our use of cookies.



Technical Information

Application Development Manual | Waiting for bar code input

Waiting for bar code input


Suspend the user application program, waiting for bar code input.


Detailed Description

This particular WAIT statement waits for port 0 bit 1 to go to 1, indicating that there is data in the bar code buffer. Specifying other bits as well terminates the wait, for example, on key input or when the specified timeout interval has elapsed.

Wait for bar code input
  open "bar:" as #1 code "A"
wait 0,&h02
Wait for bar code input or key press
  open "bar:" as #1 code "A"
wait 0,&h03
Wait for bar code input, key press, or timeout (3 seconds)
  open "bar:" as #1 code "A"
timea = 30                 'set timeout interval to 3 seconds
wait 0,&h13

Contact us


If you have not registered

The services on this member site are available only for registered customers.

New member reg.