Thread: Question Problem with Array.IndexOf
View Single Post
  #8 (permalink)  
Old 06-27-2009, 4:10 AM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Array indexes are 0-based.

Also, I would prefer the String method ToUpper over the runtime function UCase, so instead of:
Code:
UCase(fileName)
this:
Code:
fileName.ToUpper
__________________
Reply With Quote