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
>-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
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
: [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,
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
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
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