I Tried to write something similar, but kept getting random program lockups or
universe
bombouts. What I was trying to do was as letters were being typed, fine tune
a listing
to the right. Also, I tried to make a full screen editor, allowing the
arrows to allow
the user to move from field to field, and the insert key would function as
expected.
Because I was only taking one key at a time, I had to use KEYIN (otherwise
backspace wouldn't
trigger the routine as a key typed, or a function key would be returned as
only the first
character of the key.
Most of the time it worked, just everynow and again, it would blow up, and I
could never
figure out why (although I was told it was most like something in the
keyin() internally).
The gist of the routine is below: It requires you to roll your own input
routine, that is
you have to check for an "ENTER", and check for a "backspace", then remove the
last char
from BUFFER.
1000:
INPUT TEST,-1:
LOOP WHILE(TEST="1") DO
BUFFER=BUFFER:KEYIN()
INPUT TEST,-1:
REPEAT
RETURN
George
> -----Original Message-----
> From: [email protected] [mailto:owner-u2-
> [email protected]] On Behalf Of Norman, David (Health)
> Sent: Wednesday, March 11, 2009 11:27 PM
> To: [email protected]
> 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
> * [email protected]
>
> 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
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/