>>he feature was
>>invaluable on card and paper tape punches; now it's time to let the
[quoted text clipped - 4 lines]
>is reported the easier it is to correct. It also tends to build more
>accurate typing reflexes.
I cannot disagree with your "general rule". However, it is very
irritating if I attempt to paste 1,234,456.78 into a European program
and have it rejected before I get the chance to change the commas to
full stops and vice versa. The subfield idea also limits cutting and
pasting as you will have found if you have tried to paste the 19
character serial number of your Microsoft program from the text file
on the "gold" CD into the 4 character subfield. :)
Roedy Green - 14 Aug 2003 23:38 GMT
>if I attempt to paste 1,234,456.78 into a European program
>and have it rejected before I get the chance to change the commas to
>full stops and vice versa.
There are several ways the reject could be done.
1. reject the paste as if it never happened. The problem with this is
the user is at loss to know precisely what the matter is, or to be
able to correct it.
2. accept the paste, but ignore the invalid chars in the paste,
leaving the originals in place. You might replace the invalid chars
with spaces or something else appropriate.
3. accept the paste but highlight the invalid characters. Don't accept
the field until those are fixed. It is still good to let the user
know as soon as possible the error has been made, even if you don't
force him to fix it immediately.
4. For individual keystroke errors, I find the kindest way to deal
with invalid keystrokes is just to ignore them and make a tiny blip
noise. You can do some friendly things, like convert letters to
numbers in phone number fields in case people are giving you cute
mnemonics. You can auto upper or autolower case, and not complain if
the user types the opposite. You can auto hop over spaces and other
decorative punctuation in fields so that the user does not have to
type it or space over it.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.