Click to See Complete Forum and Search --> : Elements of a String


pueromane
November 14th, 1999, 08:34 AM
How can I get the 3rd or 4th Element of a String

November 14th, 1999, 01:32 PM
Dim strThirdCharacter as string
Dim strFourthCharacter as string
Dim strMyString as string
strMyString = "Testing"
strThirdCharacter = mid(strMyString, 3, 1)' will be returned "s"
strFourthCharacter = mid(strMyString, 4, 1)' will be returned "t"



HTH
Vlad

pueromane
November 15th, 1999, 02:14 AM
thanks a lot
mfG Pueromane