Hmmm...sounds like a syntax error in you code but why it compiles in one environment and not the other is confusing. Are you sure you have break; statements for each case in your switch statements.
switch(value) { case 1: { doit(); // bad - needs a break; } case 2: { doit2(); break; // good } } Jim > -----Original Message----- > From: PrashanthG [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 9:23 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] .Net Compact Framework Query > > > Hi, > I am trying to parse an XML file.I have a switch case which takes > XmlNodetype. The code works perfectly fine in .Net Framework. But with > Compact framework it is getting recognized in the IDE, but on > compiling > it gives an error > > "Control cannot fall through from one case label to another". > > Can somebody please explain this and the work around if it exists. > > Thanks > PrashanthG > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.