> Select;
>   When A=5 or A=7 or A=8;
>     Select;
>       When A=5;
>         // take action
>       When A=7;
>         // take different action
>       When A=9;
>         // take different action
>     EndSl;
>     Except detail;
>   When A=6 or A=9;
>     Select;
>       When A=6;
>         // take 6 unique action
>       When A=9;
>         // take 9 unique action
>     EndSl;
>   Except Hark;
> EndSl;

Or instead of multiple selects....

Select;
  When A = 5;
        // Take action
  When A = 7;
        // Take different action
  When A = 9;
        // Take different action
  When A = 6;
        // Take different action
  When A = 9;
        // Take different action
 EndSl;

If A = 5 Or A = 7 Or A = 8;
  Except Detail;
ElseIf A = 6 or A = 9;
  Except Hark;
EndIf

I think that is easier to read, and I don't really see the need to add 2 
subprocedures to do that.


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.