About 85 results
Open links in new tab
  1. Arrays - Visual Basic | Microsoft Learn

    Sep 10, 2022 · For additional examples, see How to: Initialize an Array Variable in Visual Basic. Iterating through an array. When you iterate through an array, you access each element in the array from the lowest index to the highest or from the highest to the lowest.

  2. How do I declare an array of type integer in vb.net?

    Feb 24, 2017 · I need to declare an array of type integer at the module level, but not sure how to do so.

  3. VB.NET - Array of Integers needs to be instantiated, how to?

    Jul 31, 2012 · you can re-allocate the array to be bigger if needed by doing this. ReDim array(10) as Integer you'll have to add in your code when you should make your array bigger.

  4. Lesson 16 : Arrays - Visual Basic Tutorial

    Feb 14, 2025 · In this example, we want to display the elements of an array in a list box. The size of the array will only be known during run time. It demonstrates the creation of a dynamic array using the ReDim keyword.

  5. How to: Initialize an Array Variable in Visual Basic

    Sep 15, 2021 · The following example shows several ways to declare, create, and initialize a variable to contain an array that has elements of type Char. ' The following five lines of code create the same array. ' Preferred syntaxes are on the lines with chars1 and chars2. Dim chars1 = {"%"c, "&"c, "@"c} Dim chars2 As Char() = {"%"c, "&"c, "@"c}

  6. Mastering Arrays in VB.Net: The Ultimate Guide with Code Examples

    Sep 6, 2024 · In this comprehensive guide, we explored various facets around using arrays in Visual Basic.Net through simple illustrative examples. Here are the key takeways: Arrays allow storing collection of elements belonging to same data type ; Choice between fixed size vs dynamic arrays; Indexed access offers O(1) fast reads and writes

  7. Arrays in Visual Basic .NET | Learn X By Example

    This example demonstrates the basics of working with arrays in Visual Basic .NET. It covers creating arrays, setting and getting values, finding the length, and working with multi-dimensional arrays. The syntax and some concepts differ from other languages, but the fundamental idea of arrays as fixed-size collections remains the same.

  8. Visual Basic arrays - ZetCode

    Oct 18, 2023 · We have several methods for working with array. We can modify the elements, sort them, copy them or search them. There are several ways, how we can initialize an array in Visual Basic. Sub Main() Dim array(5) As Integer. array(0) = 3. array(1) = 2. array(2) = 1. array(3) = 5. array(4) = 6. For i As Integer = 0 To array.Length-1.

  9. Arrays - Visual Basic Tutorial

    This beginners tutorial introduces the concept of an array in Visual Basic, how to create one, iterate through one and use the Redim statement to resize one. Visual Basic Tutorial Learn to program with Visual Basic

  10. Visual Basic | Array | VB Array | Arrays in Visual Basic | Visual Basic ...

    In this tutorial you will learn the differences between a fixed-size and dynamic array, how to properly declare each one, how to access them, how to loop through them, how to erase them, and a few other things.

  11. Some results have been removed
Refresh