× 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.



Sharon wrote regarding Dennis' code:
In his example you couldn't use the select since between oops and OopsToo there is extra processing.
 
Very true and I intentionally overlooked that extra processing. 
The For loop is done once. (for once = 1 to 1)   The extra processing code is done once and since there are no conditions, it is always done. 
It should be outside the For loop. 
Dennis was using the For loop to provide an exit point for the LEAVE. 
 
If I included the extra processing, the code would look like:
 // Stuff  
 Select ;
  when oops ;
       rtnValue = -1 ;
  when oops2 ;
     // do stuff
     rtnValue = -2 ;
   Other;
    rtnValue = *Zero ;
 Endsl ;
 
 // Cleanup
 Return rtnValue ;
 
No LEAVE's used.
I would appreciate your thoughts if I'm overlooking something.  Thank you



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.