your variable List, where is that defined?
you can change List to List.Length, though I think List is a reserved word so use another variable - eg myList
Ubound(list)
same as
myList.length
with this line
If Left((Line2).ToUpper, Len(List(i))) = List(i) Then
you can continue to use Left
eg
If Left(Line2.ToUpper, myList(i).Length) = myList(i) Then
or you can use substring
if Line2.Substring(1, myList(i).Length) = mylist(i) then
Main Topics
Browse All Topics





by: CraigLazarPosted on 2009-04-07 at 03:46:19ID: 24085744
Hi,
the easiest way to do it is add
Microsoft.VisualBasic. at the front
Microsoft.VisualBasic
Microsoft.VisualBasic.Righ
hope this helps