Hello ravi,
i already used what you said,but i couldnt get.
it executes the default state not the staments with in the case.
so if possible please send me exact syntax or code

thanks,
Gerald Anto



On Mon, Mar 2, 2009 at 12:35 PM, Ravi <[email protected]> wrote:

>
> I think you can. It should be like:
>
> var str:String = new String();
>
> switch(str){
> case 'ab':
> break;
>
> case 'ba':
> break;
>
> default:
> break;
> }
>
> -Ravi
>
>
>
> On Mar 2, 11:35 am, Gerald Anto <[email protected]> wrote:
> > Hello Friends,
> >
> > Shall we use String argument in Switch Case statement??
> >
> > like
> >
> > switch{
> >    case 'ab':
> >              break;
> >    case 'ba':
> >              break;
> >    default:
> >             break;
> >
> > }
> >
> > if possible please give me a quick reply
> >
> > Thank & Regards,
> >
> > Gerald Anto
> >
>


-- 
Thanks & Regards,
A  Gerald

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to