About 5,930,000 results
Open links in new tab
  1. How can I search an array in VB.NET? - Stack Overflow

    There is no property Index in an array child. It's actually a good idea, all the items in an array should have a property Array to access the array and Index to have the index of this item in …

  2. IndexOf with String array in VB.NET - Stack Overflow

    Apr 8, 2013 · I'd like to know how I would find the index of an item in a string array. (All of the items are lowercase, so case shouldn't matter.) It's a static (Shared) method on the Array …

  3. Find Value on Array by Index on VB.Net - Stack Overflow

    May 2, 2012 · How to find a value on an array by it's index on VB.Net? // INDEX: 0 1 2 3 4 Dim DataArray(4) as Integer = {"A", "B", "C", "D", "E"} Then, I randomize a number from 0 to 4. For …

  4. VB.NET - Array.IndexOf, LastIndexOf - Dot Net Perls

    Apr 21, 2023 · The Array.IndexOf function in VB.NET searches an array from its beginning. It returns the index of the element with the specified value. LastIndexOf, meanwhile, searches …

  5. VB.Net program to demonstrate the IndexOf() method of Array

    Nov 11, 2024 · The IndexOf() method is used to search the item within the array and return the index of the first occurrence of the item. Syntax Function IndexOf (ByVal arr() as object, Byval …

  6. Use of IndexOf-Array in VB.NET

    Nov 6, 2019 · To access array elements by its index we use IndexOf String Function which is available in the .NET Framework's base class library, using this you can locate the any index …

  7. Get index number of array elements containing certain string

    Sep 14, 2014 · The msgbox line, does what I need, but how can I save them to an array, so I can use them to access the ProgArray, and get the sections I need? Here's what I have thus far, …

  8. How to get the index of element from contains function of array in vb ...

    Apr 6, 2015 · First of all, you should consider using a List(Of T) when writing in VB.Net. The List class provides an List(Of T).IndexOf Method (T). You can do something like this : Dim index …

  9. Mastering Arrays in Visual Basic.NET – A Comprehensive Guide …

    To access elements in an array, we use their indices. The index of the first element in an array is 0, and the index of the last element is the array’s size minus 1. We can access an element by …

  10. Solved: how to find the index of an element in array? - VBAExpress.Com

    Nov 12, 2005 · To get the Index you will need to loop. [VBA] For i = LBound(MyArray) To UBound(MyArray) If MyArray(i) = "ThisValue" Then Index = i Exit For End If Next i Msgbox …

Refresh