Hi Bill,
This is what I use, written in mvBase. I think all that would need to be
changed for U2 would be the IN CH.VAL be changed to CH.VAL = SEQ(IN())
but have never tried it in U2...
This routine allows the person to use the backspace, and will instantly
abort if they hit the ESC key or type
:03
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Input Mask
Hi Bill,
This is what I use, written in mvBase. I think all that would
need to be changed for U2 would be the IN CH.VAL be changed
to CH.VAL = SEQ(IN())
but have never tried it in U2...
This routine allows the person
@listserver.u2ug.org
Subject: Re: [U2] Input Mask
ECHO OFF
INDATA = ''
LOOP
INPUT X,1:
UNTIL X = '' DO
INDATA := X
CRT '*':
REPEAT
ECHO ON
Richard Brown
- Original Message -
From: Brutzman, Bill [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Tuesday, August 08, 2006 10:54 AM
Subject: [U2
Isn't that similar to the ECHO OFF/ON command in UV?
BobW
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brutzman, Bill
Sent: Tuesday, August 08, 2006 9:38 AM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] Input Mask
The answer to my own
Depending on the emulator, you need to be wary of multi-byte keycodes which are
used for function keys and such.
These multi-byte keycodes will begin with either CHAR(2) or CHAR(27) (for
example), but can be followed by what are otherwise printable characters. If
you do not filter them, you