| The Select...Case Statement | 
			 
	 
	
     
     
   
 
    
		
			| 
			 
			Una struttura di decisione che � simile se� ElseIf esamina a fiammifero contro un valore discreto e Select...Case prescelta di caso ha la disposizione generale indicata sotto. 
			 
			 | 
		 
		
			 
				
					
						
						 Select test value 
						   Case match value1 
						      ...statements
  
						   Case match value2 
						      ...statements
  
						   Case match value3 
						      ...statements
  
						   ...
						   [ Case Else 
						     ...statements ] 
						 End Select 
					     | 
					  
				   
				 | 
		  
	 
		 
		 
	
		
			| 
			  � un'espressione, risoluzioni di valore della prova ad un singolo valore di dati. Nelle dichiarazione di caso, ciascuno dei valori del fiammifero � uno dei valori possibili che abbina il valore della prova. Le dichiarazione all'interno del caso di corrispondenza sono eseguite e un'opzione altra di caso pu� essere fornita per un non-fiammifero. 
			 
			 L'esempio sotto � un'esecuzione semplice� del caso prescelto per dargli un'idea di come funziona. 
			 
			 | 
		 
		
			 
				
					
					   
						Sub Check_Color (Src As Object, Args As EventArgs)
  
						  Select Color.SelectedItem.Value 
						    Case "Red" 
						      Message.Text = "You chose Red."
  
						    Case "Blue" 
						      Message.Text = "You chose Blue."
  
						    Case"Green" 
						      Message.Text = "You chose Green."
  
						    Case Else 
						      Message.Text = "You chose no color."	 
						  End Select
  
						End Sub
  
						<asp:DropDownList id="Color" runat="server"> 
						  <asp:ListItem Value="Red" Text="Red"/> 
						  <asp:ListItem Value="Blue" Text="Blue"/> 
						  <asp:ListItem Value="Green" Text="Green"/> 
						  <asp:ListItem Value="None" Text="None of the above"/>
  
						</asp:DropDownList> 
						<asp:Button OnClick="Check_Color" Text="Select" runat="server"/> 
                         <asp:Label id="Message" runat="server"/> 
						  | 
					  
				   
				 | 
		  
	 
     
   
 
      
	
		
			  | 
			  | 
		 
	 
	 Keywords:
     The Select...Case Statement in vb.net,
	 select case statement,
	 switch case statement,
	 while loop statement,
	 group by statement,
	 sql server statement,
	 for loop statement,
	 java statement,
	 value statement,
	 values statement,
	 switch statement,
	 function statement,
	 sql statement,
	 decode statement,
	 command statement,
	 update statement,
	 mysql statement,
	 nested statement,
	 null statement,
	 count statement
     
 
 |