vbMarkO Posted August 20, 2005 Posted August 20, 2005 How do I remove this : from the end of a word Eaxmple Account: <----- this is how it appears in the string Dim strText As String = "Account:" Dim myVar As String myVar = ' Ok right here I should do a Trim function but I cant remember how Thank You in advance vbMarkO Quote Visual Basic 2008 Express Edition!
Administrators PlausiblyDamp Posted August 20, 2005 Administrators Posted August 20, 2005 Dim strText As String = "Account:" Dim myVar As String myVar = strText.Substring(0, strText.Length - 1) 'or Dim c As Char() = {":"} myVar = strText.TrimEnd(c) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
neodammer Posted August 20, 2005 Posted August 20, 2005 Dear God shoot me ! I forgot you could use (-) numbers for reverse in that function.. :p Quote Enzin Research and Development
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.