JWColby
jwcolby at colbyconsulting.com
Wed May 9 16:08:07 CDT 2007
I am looking at how to do in VB.Net what in VBA would be str = trim(mid(str,intStartPos, intLen)) I can do this (I think) in two steps using: private mstr as string mstr = lstrRecord.SubString(intStartPos,intWidth) mstr = mstr.Trim(mstr.ToCharArray) Given what I know about VB.Net (not very darned much) is this the best way? I see where the string builder can do the substring part but it does not have a trim method. John W. Colby Colby Consulting www.ColbyConsulting.com