USslang Posted October 9, 2018 Report Share Posted October 9, 2018 How to find out with MacroExpress Pro how many lines are there in text document? What is the command... I searched the help file, couldn't find it... Quote Link to comment Share on other sites More sharing options...
Cory Posted October 9, 2018 Report Share Posted October 9, 2018 The easiest way I found was: Create the special character Carriage Return or Line feed. (Newline) Copy the text of the first variable to a second variable. Remove all instance of the CR or LF from the second string variable. Subtract the number of characters of the second string variable from the original variable. The difference is the number of newlines. Add 1 to that value. You may want to trim the original text first to ensure there is not a trailing newline set. 1 Quote Link to comment Share on other sites More sharing options...
rberq Posted October 9, 2018 Report Share Posted October 9, 2018 Or, if you are just looking for number of RECORDS (as you say in the title of your posting) -- use Text File Begin Process, which transfers the records one at a time into a variable, and you can add to a counter each time through. 1 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.