Modify ↓
Opened on Jul 25, 2012 at 1:43:27 PM
Closed on Jul 25, 2012 at 5:39:59 PM
Last modified on Jul 26, 2012 at 4:59:43 PM
#2237 closed Bug (No Bug)
SetError/Extended returns 1 if return value is omitted
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.8.1 | Severity: | None |
| Keywords: | SetError, SetExtended, Return | Cc: |
Description
Help file states:
Return Value By default, none, however, if the optional return value argument is passed, then the function will return that value.
But it's not true, SetError/SetExtended returns 1:
ConsoleWrite(Test() & @LF) Func Test() Return SetError(1) EndFunc
Attachments (0)
Change History (3)
follow-up: 2 comment:1 by , on Jul 25, 2012 at 5:39:59 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:3 by , on Jul 26, 2012 at 4:59:43 PM
It means don't fucking use the return value because it's not defined.
Note:
See TracTickets
for help on using tickets.

I don't think you understand what "none" means. It DOES NOT mean 0, otherwise it would have stated as much.