It checks the others to show you have not entered a valid response. - I
think most terminal emulators will interpret the beep and do a sound, or
even flash the screen.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mecki Foerthmann
Sent: 15 March 2012 19:33
To: [email protected]
Subject: Re: [U2] Unusual code

The code will perform the Enter Problem codes sub if anything except Y or 1
are entered.
So why test for N and 2 at all?
Just to let the terminal beep which doesn't work on a terminal emulator
anyway?
I would have just used IF THEN ELSE.

On 15/03/2012 19:18, Susan Joslyn wrote:
> For multilingual.  I go with 0/1 for no/yes, myself.  But then you can 
> use a code table - in any language - where the returned value is 1 or 
> 2 and test for that in the programs.  Also lets the code table or 
> whatever other validation utility you use deal with the upper and 
> lower case issue.  Final result is 0/1 and all programs can use that 
> and don't have to be changed when the language does.
>
> I still wouldn't use that construct, but that could explain why the
numeric.
>
> SJ
>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4872 - Release Date: 03/15/12

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to