Section 3.4


[Page 622 (continued)]

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.

Table C.1. Replacements for Functions

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





An Introduction to Programming Using Visual Basic 2005
Introduction to Programming Using Visual Basic 2005, An (6th Edition)
ISBN: 0130306541
EAN: 2147483647
Year: 2006
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net