Re: RE: [Harbour] exit with switch and for each

2009-05-27 Thread Przemyslaw Czerpak
On Wed, 27 May 2009, Horodyski Marek (PZUZ) wrote: > This is not comparable. Exit was escape from loop without control > expression, loop with control. > Now, when mixed syntax switch and any while/for we still heve LOOP > inside switch, but EXIT no longer. > EXIT in the sense : escape from a loop

RE: [Harbour] exit with switch and for each

2009-05-27 Thread Horodyski Marek (PZUZ)
>-Original Message- >From: Przemyslaw Czerpak [mailto:dru...@acn.waw.pl] >Sent: Monday, May 25, 2009 9:40 PM >To: Harbour Project Main Developer List. >Subject: Re: [Harbour] exit with switch and for each > >On Sat, 23 May 2009, Vailton Renato wrote: [...] >Th

Re: [Harbour] exit with switch and for each

2009-05-25 Thread Przemyslaw Czerpak
On Sat, 23 May 2009, Vailton Renato wrote: Hi, > 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 The same is for many ot

Re: [Harbour] exit with switch and for each

2009-05-25 Thread Ranier Vilela
: [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 Hi, the are many ways for this,

RE: [Harbour] exit with switch and for each

2009-05-25 Thread Horodyski Marek (PZUZ)
Yes, therefore I write "without additive rules". Regards, Marek Horodyski >-Original Message- >From: Vailton Renato [mailto:vail...@gmail.com] >Sent: Saturday, May 23, 2009 10:06 PM >To: Harbour Project Main Developer List. >Subject: Re: [Harbour] exit with sw

Re: [Harbour] exit with switch and for each

2009-05-23 Thread Vailton Renato
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 ___ Harbour mailing list Harbour@harbour-project.or

[Harbour] exit with switch and for each

2009-05-23 Thread marek . horodyski
How we can without additive rules use exit for escape from loop in this syntax : for each x in stringORarray switch x case 'a' exit // but we need exit from "for each", not only from switch end next Maby, for optimization, for escape from switch we need another rules word ? Regards, Marek Horod