C#:
switch (option)
{
case "option1":
// code for case "option1"
break;case "option2": //code for case "option2"break;default: //code for every other optionsbreak; }
VB.NET:
Select CaseoptionCase "option1" 'code for case "option1"Case "option2" 'code for case "option2"Case Else 'code for every other optionsEnd Select
No comments:
Post a Comment