Modify

#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 by Valik, on Jun 9, 2008 at 4:42:48 PM

Resolution: No Bug
Status: newclosed

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.

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.