Visual Basic Tutorial - 24 - Select Case

Поділитися
Вставка
  • Опубліковано 5 лют 2025

КОМЕНТАРІ • 25

  • @TheJesterGodlike
    @TheJesterGodlike 11 років тому +1

    Although Select cases and if-else statements are interchangeable, if-statements aren't good practice for a large number of different conditions. Select cases also deal with executing code based on a single variable's value so organizationally it is better for that particular instance.

  • @СергейДрузь-ь3ж
    @СергейДрузь-ь3ж 5 років тому +2

    Very useful!

  • @huijasz
    @huijasz 12 років тому +2

    but...what is the difference between if statement and select case in application? Why do we have to learn them both instead of learning the if statement only?

  • @xcalibur1867
    @xcalibur1867 2 роки тому

    Thanks this is very helpfull

  • @wkj8157
    @wkj8157 12 років тому +1

    help me with this situation
    i have a textbox and radio button 1 and radio button 2..
    i want to make auto check radio button using case statement
    i want to make the program read the last number when user key in the textbox
    case is =0,2,4,6,8
    radiobutton1 = True
    radiobutton2 = False
    case is =1,3,5,7,9
    radiobutton1 = False
    radiobutton2 = True
    I cannot find a way to read the last number in the textbox..please help me

  • @TomVu88
    @TomVu88 13 років тому +1

    this is so much easier than java

  • @UnderlinedDesigns
    @UnderlinedDesigns 13 років тому +1

    I didn't have that nailed down I had that screwed down!!, pun intended :)

  • @casvanmarcel
    @casvanmarcel 13 років тому +3

    this is the equivalent of the SWITCH in C

  • @mp923
    @mp923 9 років тому +1

    how can you make it so you can search multiple things in one go?

  • @ivandrofly
    @ivandrofly 11 років тому

    This code works just like switch in C&C++

  • @GEOTHEWORST
    @GEOTHEWORST 13 років тому

    select case must be used in some cmd programs!!!
    1)Dos
    2)Net bios
    3)
    4)
    and then u type one of them to continue

  • @Zen0610
    @Zen0610 2 роки тому

    May I ask what kind of programming language is used in VB? Tnx

  • @georgesmith9538
    @georgesmith9538 6 років тому

    what happens if you enter 7, for example

  • @burzaa5277
    @burzaa5277 4 роки тому

    Dzienki za poradnik zostane na przyszlość trszmaj sie pszyjacielu

  • @xavi_6767
    @xavi_6767 8 років тому

    nailed it :D

  • @bcoziwanto
    @bcoziwanto 12 років тому

    Is there a default case in VB as in C++?

  • @AhmedASM10
    @AhmedASM10 10 років тому

    thanx man

  • @mishamisha2483
    @mishamisha2483 9 років тому

    is it the same as switch statement in c++?

    • @warlordsquerk5338
      @warlordsquerk5338 8 років тому

      +Misha Misha I think switch only works for integers.

  • @RahilWazirAli
    @RahilWazirAli 12 років тому

    VB isn't case sensitive!

  • @angelmiguel8496
    @angelmiguel8496 4 роки тому

    🥚🥚🥚🥚

  • @newhuman9458
    @newhuman9458 10 років тому

    same result with if statement
    Console.WriteLine("enter a integer")
    Dim a As Integer = Console.ReadLine
    If a = 0 Then
    Console.WriteLine("hello")
    Else
    If a = 1 Then
    Console.WriteLine("bye")
    End If
    End If
    If a = 2 Then
    Console.WriteLine("goodmorning")
    End If
    Console.ReadLine()

  • @DJShapyOfficial
    @DJShapyOfficial 12 років тому

    one :( Ill like it toi try and overrule him