I'm typing this from memory:

TM.LIMIT   = 5 ;* 5 second time limit
DT.START = DATE()
TM.START = TIME()
LOOP
IF INPUT XX,-1 THEN INPUT VAR ELSE 
   TM.PASSED  = (DATE() - DT.START) * 86400  
   TM.PASSED  += (TIME() - TM.START)
   IF TM.PASSED > TM.LIMIT THEN EXIT    
END
REPEAT




----- Original Message ----
From: "Norman, David (Health)" <norman.da...@saambulance.com.au>
To: u2-users@listserver.u2ug.org
Sent: Wednesday, March 11, 2009 11:26:56 PM
Subject: [U2] UV Timed INPUT

I'm sure I've seen something about this recently, but I've searched the
past 2 years with no luck. I want to do a timed INPUT in UV - if after n
seconds the Enter key hasn't been pressed, do something.
Anyone got any clever ways of doing this ?

Thanks,
========================
David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
* +61 8 8274 0384 
* fax +61 8 8271 4844
* norman.da...@saambulance.com.au

This e-mail may contain confidential information, which also may be
legally privileged. Only the intended recipient(s) may access, use,
distribute or copy this e-mail. If this e-mail is received in error,
please inform the sender by return e-mail and delete the original. If
there are doubts about the validity of this message, please contact the
sender by telephone. It is the recipient's responsibility to check the
e-mail and any attached files for viruses.
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to