Modify

Opened 17 years ago

Closed 17 years ago

#363 closed Bug (No Bug)

UDF Func Declaration & #CS #CE Comment

Reported by: goldenix Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

Try Running This, You will see, that its Not Skipping the #Cs Comments & its erroring: ERROR: _UDF_ByReference() already defined.. If you delete all Commented Stuff, it works.

;~ Sample 1
;~ ==================================================================================
;~ ----------------------------------------------
$e = _UDF_ByReference(100,200)
MsgBox(0, 'Sample 1', $e)
;~ ----------------------------------------------
MsgBox(0, 'Sample 2', _UDF_ByReference(200,200))
;~ ----------------------------------------------

Func _UDF_ByReference($parameter1,$parameter2)
    $xxx = $parameter1 + $parameter2
    Return $xxx
EndFunc
;~ ==================================================================================

#cs-----------------
;~ Sample 1
;~ ==================================================================================
;~ ----------------------------------------------
$e = _UDF_ByReference(100,200)
MsgBox(0, 'Sample 1', $e)
;~ ----------------------------------------------
MsgBox(0, 'Sample 2', _UDF_ByReference(200,200))
;~ ----------------------------------------------

Func _UDF_ByReference($parameter1,$parameter2)

    Return $parameter1 & $parameter2
EndFunc
;~ ==================================================================================
#ce-----------------

Attachments (0)

Change History (1)

comment:1 Changed 17 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

First of all, this is an Au3Check issue, which you fail to mention. AutoIt works just fine. However, I'm surprised AutoIt works (not really, I know how the code works). But anyway, your #cs and #ce statements are invalid. You have:

#cs-----------------

You need a space between #cs and the dashes. This makes Au3Check happy, and is the correct thing to do anyway.

No bug.

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.