× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>  MultiSelect; // Like Select except all "When" clauses are always
> evaluated.
>    When A=5;
>       // take action 
>    When A=7;
>       // take different action
>    When A=8;
>       // take different action
>    When A=5 OR A = 7 OR A=8;
>        Except detail;
>  EndMSl;


I'm not sure if I like this idea or not, but I can think of times when I 
'could' have used it.  I think I would probably still prefer to use 
multiple If/EndIf's instead though.  It is too easy to look at that code 
and not see that it could meet multiple conditions.  I would just take out 
that last When A = 5 or A = 7 or A = 8 and make that an IF statement after 
the EndSl.

 
> the Case statements are limited to testing the results of the expression 
specified on the Switch statement,
> which I often find limiting but still usable.

I guess the way a Switch/Case statement works in C++ would be similiar to 
how I would use a Select/When in RPG.  If a variable is being tested for a 
different value, I would use a select. If I am testing multiple unrelated 
conditions I would use If/ElseIf. 



Mike

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.