Remove characters from end of string

  • Thread starter Thread starter Del
  • Start date Start date
D

Del

I have a string that varies in length and I want to remove 16 characters from
the end of it. What code is available to do this?
 
Del said:
I have a string that varies in length and I want to remove 16 characters
from
the end of it. What code is available to do this?

For a string called s, the code would be:

s = Left$(s, Len(s) - 16)
 
Sometimes I get into a fog and can't see a thing. That is a much simpler way
than what I was headed toward. Thanks for the rapid response.
 
Del said:
I have a string that varies in length and I want to remove 16 characters from
the end of it. What code is available to do this?


Left(string, Len(string)-16)
 
Back
Top