[Harbour] exit with switch and for each

Horodyski Marek (PZUZ) M.Horodyski at pzuzycie.com.pl
Mon May 25 03:55:28 EDT 2009


Yes, therefore I write "without additive rules".

Regards,
Marek Horodyski 

>-----Original Message-----
>From: Vailton Renato [mailto:vailtom at gmail.com] 
>Sent: Saturday, May 23, 2009 10:06 PM
>To: Harbour Project Main Developer List.
>Subject: Re: [Harbour] exit with switch and for each
>
>Here I use something like this:
>
>lExit := .F.
>
>for each x in stringORarray
>switch x
>case 'a'
> lExit := .T.
> exit // but we need exit from "for each", not only from 
>switch end  if lExit
>   exit;
> end
>next
>
>


More information about the Harbour mailing list