Thread: Question Problem with Array.IndexOf
View Single Post
  #2 (permalink)  
Old 06-26-2009, 3:03 PM
MattP MattP is offline
VB.NET Forum Idol
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Feb 2008
Location: USA
Posts: 872
Reputation: 499
MattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond reputeMattP has a reputation beyond repute
Default

This returns 6 like expected.

Code:
		Dim ints() As Integer = New Integer() {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

		MessageBox.Show(Array.IndexOf(ints, 7))
Reply With Quote