Just for information now,

Input thisKey, -1 just returns whether or not there is anything in the input
buffer. It doesn't input it.

So -

* test ..
Loop
  (stuff)
  Input IsSomethingThere, -1
Until IsSomethingThere Do
Repeat
  
* and clear it out ..

  Loop
    Input IsSomethingThere,-1 Do
  While IsSomethingThere Do
    Discard = KeyIn()
  Repeat
  

Brian

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
Sent: 09 August 2013 21:04
To: 'U2 Users List'
Subject: [U2] KeyPressed

With Dynamic Connect... and UniBasic...

I need a screen that continuously displays time... as we have an inspection
screen where press operators enter fresh data each hour.  Something like...

  loop                                    

    call *timeOfDay
    call *displayOtherStuff

     input             thisKey, -1

  until (thisKey = '1')
  
     sleep
  
  repeat  

  gosub secondScreen



The trouble with this thing is... when a key is pressed... it wants to
display the key on asubsequent screen.

I tried...    inputclear... but it is not doing what I want.

Suggestions would be appreciated.

--Bill

_______________________________________________
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

Reply via email to