View Single Post
Old Jan 14th, 2007, 3:42 AM   #5
Mixmaster
Newbie
 
Mixmaster's Avatar
 
Join Date: Sep 2006
Posts: 8
Rep Power: 0 Mixmaster is on a distinguished road
Ok coming good. I edited my switch statement a bit. I want to fall through the switch statemement like
do case 1
do case 2..

etc.
Up till 4. How do I go about doing that? I tried goto and it wont work for me.

switch(time)
		{
					   
			case 1: System.Console.WriteLine(" Enter the century. ie 20 or 19.");
				C = System.Console.ReadLine();
				Convert.ToInt32(C);
			goto case 2;
				
				       
					case 2: System.Console.WriteLine("Enter year in YY format. ie 96") ;
					Y = System.Console.ReadLine();
					Convert.ToInt32(Y);
					goto case 3;
					
				   
					case 3: System.Console.WriteLine("Enter month in MM format. ie 03");
					M = System.Console.ReadLine();
					Convert.ToInt32(M);
					goto case 4;

					case 4: System.Console.WriteLine("Enter the two digit day of the month. ie 13");
					D = System.Console.ReadLine();
					Convert.ToInt32(D);
					break;
				}
Mixmaster is offline   Reply With Quote