Modify ↓
Opened on Jun 9, 2008 at 4:14:01 PM
Closed on Jun 9, 2008 at 4:42:48 PM
#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 , on Jun 9, 2008 at 4:42:48 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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:
You need a space between #cs and the dashes. This makes Au3Check happy, and is the correct thing to do anyway.
No bug.