In VB2005, the positions of the characters in a string are now numbered beginning with 0.
Option Strict, which enforces the proper use of variable types, has been added in VB2005 and defaults to Off.
VB6
VB2005
UCase(str)
str.ToUpper
Len(str)
str.Length
Left(str, n)
str.Substring(0, n)
Mid(str, m, n)
str.Substring(m - 1, n)
Right(str, n)
str.Substring(str.Length - n)
Instr(str1, str2)
str1.IndexOf(str2)
TRim(str)
str.Trim