Modify ↓
#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 , 14 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 14 years ago
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.