I am trying to remove the last character of a string variable. I know that the character will be "+" so I figured something like this would work:
MyLen = Len(MyStr)
MyStr = Replace(MyStr, "+", "", MyLen)
But the return value is an empty string. So I tried:
MyLen = Len(MyStr)
MyStr = Replace(MyStr, "+", "", MyLen - 1)
and the return value is "2" which is the second-to-last last character in the original string.
I am missing something here. (Obviously)
Any advice on my approach or on an alternate method?
Regards...Tom
MyLen = Len(MyStr)
MyStr = Replace(MyStr, "+", "", MyLen)
But the return value is an empty string. So I tried:
MyLen = Len(MyStr)
MyStr = Replace(MyStr, "+", "", MyLen - 1)
and the return value is "2" which is the second-to-last last character in the original string.
I am missing something here. (Obviously)
Any advice on my approach or on an alternate method?
Regards...Tom