Opened 12 years ago
Closed 12 years ago
#2605 closed Bug (Fixed)
Macro @ScriptLineNumber returns incorrect line
| Reported by: | Shanheavel | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.10.2 | Severity: | None |
| Keywords: | macro, ScriptLineNumber, @ScriptLineNumber | Cc: |
Description
If F() Then Exit @ScriptLineNumber Func F() Return True EndFunc
It calls F function which returns true and backs to the first line, where calls Exit function with @ScriptLineNumber macro as a parameter. The exit code should be '1', not '3'.
The full thread is here
Attachments (0)
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
In my opinion this is normal AutoIt behavior.
AutoIt when runing this script hold this script exactly like you make it, so the line number 3 is correct.
Look in my example in track ticket:
http://www.autoitscript.com/trac/autoit/ticket/2812
This will show you what I mean in your case.
mLipok
comment:3 by , 12 years ago
oh... face palm... sorry
but I notice this issue no longer exist in AutoIt 3.3.13.11

Same issue as #2372, as was already mentioned in the thread.