Visual Basic - Using For Each to Loop through an Array or String

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • A look at how to use Visual Basic's For Each... construct to loop or iterate through a collection of things, such as a string or an array. Includes an example of how to spell out a word in the phonetic alphabet.
    You can also see the resources for learning to program on the Computing and ICT in a Nutshell website: www.advanced-i...

КОМЕНТАРІ • 3

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

    why - 65?

    • @advanced_ict
      @advanced_ict  4 роки тому +1

      I didn't create ASCII, but I suspect that it's related to the bit patterns in binary. 01000000 is 64, so A is 64 + 1, B is 64 + 2, etc.
      Similarly, 96 is 01100000 and a is 96 + 1, b is 96 + 2, etc. So what distinguishes upper and lower case letters is the pattern of bits in the second and third positions from the left.

  • @eyya_jaebb
    @eyya_jaebb 3 роки тому

    Hi! How to display an entered loop name(string)?
    How many loops you want? 5
    Enter the name: Jave
    Enter the name: Claire
    Enter the name: Mike
    Enter the name: Liam
    Enter the name: Ken
    Jave
    Claire
    Mike
    Liam
    Ken
    I
    I can't search it on google :( help me please, it only display....
    Enter the name: Jave
    Enter the name: Claire
    Enter the name: Mike
    Enter the name: Liam
    Enter the name: Ken
    Ken
    Ken
    Ken
    Ken
    Ken