Modify

Opened 6 years ago

Closed 5 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 Changed 6 years ago by Mat

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

comment:2 Changed 5 years ago by mLipok

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 Changed 5 years ago by mLipok

oh... face palm... sorry

but I notice this issue no longer exist in AutoIt 3.3.13.11

comment:4 Changed 5 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in beta

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.