Plz help me out.
I have created string

string strMDX;
then initialize query to it. but whein i try to open it. i am getting error saying
cs.Open(l_str_strMDX, conn);
Use of unassigned local variable 'strMDX'

even though i assigned. it is working fine when i have only one strMDX. But when i use

switch (strtest)
case "my Application"
strMDX = "mystring"
case "my Application2"
strMDX = "mystring2"

i don't know why it is not getting assigned when i use switch statement. plz help me out...