Posted: 27th Jun 2007 1:38
Is there a variable I can call that stores the current line number?

I want to keep my errors simple like this:

+ Code Snippet
if ..
message "Unhandled exception at line "+(line number)
endif
Posted: 27th Jun 2007 1:43
There's no variable that you can get at, at least, not very easily.

What you want is actually provided by one of my utility plug-ins (number 6):
+ Code Snippet
if ...
    report error "Unhandled exception"
endif


It automatically includes the line number in the message box that appears.
Posted: 28th Jun 2007 0:45
IanM, you're the greatest.