Modify

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 Matt Diesel, 12 years ago

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

comment:2 by mLipok, 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 mLipok, 12 years ago

oh... face palm... sorry

but I notice this issue no longer exist in AutoIt 3.3.13.11

comment:4 by J-Paul Mesnage, 12 years ago

Resolution: Fixed
Status: newclosed

Fixed in beta

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.