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