Or if your re-using code, and you don't need all the cases in one program.

George

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Colwell, Kim
Sent: Thursday, April 19, 2012 3:56 PM
To: U2 Users List
Subject: Re: [U2] Case Statement with only two cases

Makes FUTURE maintenance MUCH easier if you want to add 1 or 2 or 5 more
cases ....

On Thu, Apr 19, 2012 at 2:52 PM, Wjhonson <[email protected]> wrote:

>
> Is there a point in code like this
>
> BEGIN CASE
>   CASE A = "TEST"; GOSUB DO.SOMETHING
>   CASE 1; GOSUB DO.SOMETHING.ELSE
> END CASE
>
> versus this
>
> IF A = "TEST" THEN GOSUB DO.SOMETHING ELSE GOSUB DO.SOMETHING.ELSE
>
> Personally I see no advantage in making this a  CASE
>
> Does the rest of the *Universe* agree with me?
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>



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

Reply via email to