JohnBailey Posted January 23, 2007 Share Posted January 23, 2007 Is there a way to display total line numbers?something like$amount = @totalLineNumbers MsgBox(64,"The Total of Line Numbers", $amount) A decision is a powerful thing Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 23, 2007 Moderators Share Posted January 23, 2007 If it's a File you want the lines of ... you can look at _FileCountLines()... If not, you'll need to be more specific. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JohnBailey Posted January 24, 2007 Author Share Posted January 24, 2007 SmOke_N, _FileCountLines() - That looks awesome. How do I get it to work? I just dropped it into script, but the dialog panel told me it was undefined. I searched the doc files and can't seem to find it anywhere. However, it does turn blue.I just want to be able to see the amount of lines for a given au3/exe file.Thanks A decision is a powerful thing Link to comment Share on other sites More sharing options...
herewasplato Posted January 24, 2007 Share Posted January 24, 2007 (edited) Look at the sample code at the bottom of the AutoIt help file for _FileCountLinesEdit: ...and take note of the include statement... Edited January 24, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
MHz Posted January 24, 2007 Share Posted January 24, 2007 If you look at the helpfile, it tells you #include <File.au3> _FileCountLines ( $sFilePath ) $sFilePath is the variable that contains the path to the file. Link to comment Share on other sites More sharing options...
JohnBailey Posted January 24, 2007 Author Share Posted January 24, 2007 Thanks guys! I'm an idiot. I originally searched looking for _FileCountLines () and I guess I didn't see it when looking for it manually. Thanks again. It works great! A decision is a powerful thing Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now