Yes.

Switch (name2)
{
case "yxz":
   pair2="abc";
   break;
case "abc":
.
.
.
}

--- In [email protected], "Mi" <henni...@...> wrote:
>
> Hi all, 
> 
> just a brief question.
> 
> I tried this (see below)in a switch statement, but it dosn't worked, because 
> of the string. is there a way using strings in switch statement.
> 
> 
> if (name2=="yxz")
>  pair2="abc";
> if (name2=="abc")
>  pair2="xyz";
> ...............
> 
> thanks 
> 
> MH
>


Reply via email to