Zarious Posted October 26, 2006 Report Share Posted October 26, 2006 I have a string variable that has extra spaces on the end. I need to cut those extra spaces off of the end of the string, but not effect the spaces between the words. Here's an example of what I mean, where the underlines ___ represent the spaces I need to remove. Lastname, Firstname__________ A Business Name______________ I am capturing this information from the windows title (trust me it's the only way I can get it ) and it seems that the title is always 40 characters long, with extra spaces being added at the end of the information to make it be 40 characters. I've somehow got to get ME to delete everything from character 40, back to the last letter it encounters. Any ideas on how to do this? Quote Link to comment Share on other sites More sharing options...
kevin Posted October 26, 2006 Report Share Posted October 26, 2006 Try Variable Modify String: Right Trim %T1%. Quote Link to comment Share on other sites More sharing options...
Zarious Posted October 26, 2006 Author Report Share Posted October 26, 2006 Ok that was a DUH moment. For some reason I thought that if I used the trim command, that I would have to specify how many spaces to trim, and the number of spaces vary. Thank you very much for the quick reply. Man this is a great forum . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.