Jump to content

ConsoleWrite get line


Champak
 Share

Recommended Posts

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
Link to comment
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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...