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

    May 4, 2009 · I don't think there's such a thing as a switch case specific GoTo in Vb.Net. But I would probably use If/Elseif, or set some boolean variable to true and do the processing …

  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. 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) ?

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

    Aug 27, 2016 · In VB.NET, I have to compare some objects within a select case statement. Since select case uses = operator by default and this is not defined for objects, a compile ...

  5. 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?

  6. vb.net - Using Enumeration in Select case - Stack Overflow

    Jun 16, 2009 · Enum age Over18 Under18 End enum Select case age End select 'age' is a type and cannot be used as an expression. Is there any way of using enums in "select case"?

  7. 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 …

  8. Select Case on Radiobutton group is it possible? - Stack Overflow

    Jul 30, 2010 · Select Case on Radiobutton group is it possible? Asked 15 years, 2 months ago Modified 15 years, 2 months ago Viewed 10k times

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

    Oct 7, 2015 · I'm using an Or statement in my case expression. Even though I have a value within this range, it didn't find a match. Why not? Example Code: Select Case 2 Case 0 ' Some logic …

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

    Mar 1, 2017 · You separate multiple values by using a comma: Case Combo1.SelectedItem, Combo2.SelectedItem Using Or would make it an expression that would be evaluated before …