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?
Printable View
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?
Using String.SubString() function:
VB Code:
string str = "DRS332"; MessageBox.Show(str.Substring(0,3));
thanks, that did it!