|
Posted by jj on 07/22/05 19:01
dziekuje!
:)
"Hilarion" <hilarion@SPAM.op.SMIECI.pl> wrote in message
news:dbqf5u$1tf$1@news.onet.pl...
> > is it possible to call on a case statement within a case?
> >
> > for ex:
> >
> > switch ($xyz)
> > {
> >
> > case 'case1':
> > //some code
> > break;
> >
> > case 'case2':
> > //some code
> > ***here i would like to trigger case1***
> > break;
> >
> > }
>
>
> Change order of cases and remove one "break":
>
> switch ($xyz)
> {
> case 'case2':
> //some code
> //No "break" causes the execution to continue
> //in the 'case1' code.
> case 'case1':
> //some code
> break;
> }
>
>
> Hilarion
Navigation:
[Reply to this message]
|