The Left() function will do this. example: Dim aString as string = "This is a test string" Dim aFirstChar as string = Left(aString, 1) ' aFirstChar will contain "T" ' the second parameter is the number of characters, so ' Left(aString,4) will contain "This"
Steve Fabian
w: http://www.gooddogs.com/dotnetnuke
sit, stay, code ... good boy!
steve.fabian
Participant
1414 Points
280 Posts
Re: String functions in VB.NET
Aug 26, 2002 07:43 PM|LINK
w: http://www.gooddogs.com/dotnetnuke
sit, stay, code ... good boy!