I want an easy way to trim the last three characters from the right of strings which are of varied lengths, such as: 3043, 75607, 159887? This was very simple with the deprecated StringTrimRight.
Neither SubStr() nor rtrim() seem to do this with variable strings of unknown length.
This gives me what I want, but but is there a "newer" way that's not obsolete?
Code: Select all
InVar = 41085 ; 3043, 159887
StringTrimRight, OutVar, InVar, 3
MsgBox,1, MESSAGE TITLE, %OutVar%, 10
Thank you very much
RH