Click to See Complete Forum and Search --> : Right Trim?
seidel1
Dec 23rd, 2006, 10:25 AM
I have a value that I read in as DRS332 the field is always 6 characters wide. how do I Right trim so that I only get the 3 left characters?
Harsh Gupta
Dec 23rd, 2006, 01:03 PM
Using String.SubString() function:
string str = "DRS332";
MessageBox.Show(str.Substring(0,3));
seidel1
Dec 27th, 2006, 12:29 AM
thanks, that did it!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.