About 209,000 results
Open links in new tab
  1. VB.NET Switch Statement GoTo Case - Stack Overflow

    May 4, 2009 · I am writing some code in VB.NET that uses a switch statement but in one of the cases it needs to jump to another block. In C# it would look like this: switch (parameter) { case …

  2. VB.NET How give best performance "Select case" or IF... ELSEIF

    In general, the VB.NET compiler does make an effort to optimize a Select statement. That will work when it uses a simple value type as the selector and trivial Case statements. The …

  3. Multiple select cases in VB.NET - Stack Overflow

    Mar 1, 2017 · Case Combo1.SelectedItem, Combo2.SelectedItem Using Or would make it an expression that would be evaluated before compared to the value in the Select. If your value in …

  4. vb.net - Select Case between number - Stack Overflow

    May 30, 2017 · I try a select case between number. Each 150000 the code the Textbox5 change on click button. Select Case TextBox5.Text Case 0 To 150000 TextBox6.Text = "-" Case …

  5. vb.net - Select Case with "Is" operator - Stack Overflow

    Aug 27, 2016 · As you have pointed out, the Select Case True pattern is an "OrElse" short-circuit workaround in VB6 - a wonky way to meet a real need. But that's not needed in VB.NET. In …

  6. What is the VB.NET select case statement logic with case OR-ing?

    Oct 7, 2015 · Select Case 2 Case 0 ' Some logic Case 1 ' Some other logic Case 2 Or 3 Console.WriteLine("hit") End Select With the above I would assume that hit would be printed, …

  7. vb.net - vb .net, select statement, default - Stack Overflow

    Dec 5, 2012 · In C I can assign default to some existing switch entry: switch(c) { default : case 1: break; case 2 : break; } Is there a similar possibility in VB's select statement?

  8. vb.net - Select Case True - Stack Overflow

    Mar 30, 2015 · Apparently this used to be a way in VB6 and VBA to short circuit and execute the first true case: Select Case True End Select Is this still in use (VB.NET) ?

  9. Select Case on an object's type in VB.NET - Stack Overflow

    Nov 23, 2012 · How would I switch on an object's type but using VB.NET's Select Case? I'm aware that some might suggest using polymorphism, but I'm using a hierarchy of small …

  10. vb.net - select case to check range of a decimal number - Stack …

    From there you can Select Case range. But really, jvanderh's answer most expresses what you want to do, because it allows for easy addition of cases in the future that don't break on a …