terrypin Posted May 8, 2010 Report Share Posted May 8, 2010 ME Pro Help says: Trim The Trim option removes all spaces and control characters on the left and on the right of the text string variable being modified. I made a file called C:\trim-test.txt containing these 3 lines: 5 blanks before this text 6 blanks before this text 8 blanks before this text This macro simply copies that text to the clipboard, sets a variable, and left trims it. Program Launch: "NOTEPAD.EXE" (Normal) Parameters: C:\trim-test.txt Text Type (Simulate Keystrokes): <CONTROL>a // Select all text. Delay: 100 milliseconds Text Type (Simulate Keystrokes): <CONTROL>c // Copy all text. Delay: 100 milliseconds Variable Set String %T% from the clipboard contents Variable Modify String %T%: Trim Text Box Display: Result after left trim So why are the left spaces still present? -- Terry, East Grinstead, UK TrimNotWorking.mex Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.