Remover characters

Results 1 to 3 of 3

Thread: Remover characters

  1. #1
    Join Date
    Dec 1969

    Default Remover characters

    Is there an easy way of removing the last character of a tring. For example:<BR><BR>sting = "The nice life."<BR><BR>* Well, I want to remover the last character so that would be the "period". *<BR><BR>So it is possible to do something like<BR><BR>trim(string, right, 1)<BR><BR>I know this doesnt work, but is there anything like this?

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Easy

    TheString = left(TheString, len(TheString)-1)<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Remover characters

    you could go one of two ways with this<BR><BR>newstring = Replace(string, ".", "") would remove ALL periods<BR><BR>OR<BR><BR>newstring = left(string, len(string)-1) would remove the last character

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts