title image


Smiley switch case...
Hi,



wie bekomme ich das in eine switch-case-Anweisung:



bool boolSelection

string strSelected



if(boolSelection = true)

{

strSelected = ddl.SelectedItem.Text;

}

if(boolSelection2 = true)

{

strSelected = ddl2.SelectedItem.Text;

}

if(boolSelection3 = true)

{

strSelected = ddl3.SelectedItem.Text;

}

if(boolSelection4 = true)

{

strSelected = ddl4.SelectedItem.Text;

}



...





Gruß Andi

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: