Sign in to follow this  
Followers 0
Champak

ConsoleWrite get line

2 posts in this topic

#1 ·  Posted (edited)

Not using an error function, but would like to know which line in the code is being written. Is it possible for consolewrite to also output the line code...how? I got about 30 pages back in searching.

Ex: consolewrite("whatever" & @codeline)

EDIT: Found it -- @ScriptLineNumber

Edited by Champak

Share this post


Link to post
Share on other sites



Not using an error function, but would like to know which line in the code is being written. Is it possible for consolewrite to also output the line code...how? I got about 30 pages back in searching.

Ex: consolewrite("whatever" & @codeline)

@ScriptLineNumber

Line number currently being executed. Useful for debug statements specially when a function is call you can pass the caller line number. (Not significant in compiled script)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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