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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top