Sign in to follow this  
Followers 0
JohnBailey

Total Line Numbers

6 posts in this topic

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

Share this post


Link to post
Share on other sites



If it's a File you want the lines of ... you can look at _FileCountLines()... If not, you'll need to be more specific.


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Look at the sample code at the bottom of the AutoIt help file for _FileCountLines

Edit: ...and take note of the include statement...

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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.

:)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0