Modify ↓
Opened 12 years ago
Closed 12 years ago
#2730 closed Bug (No Bug)
SetError - Return Value - undefined ?
| Reported by: | mLipok | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | Documentation | |
| Version: | 3.3.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
in parameters:
[optional] The value to be returned by the function - if no parameter used the return value is undefined
This is no true or I personally do not understand the intentions.
REPRO:
$ret = _TEST() MsgBox(1,$ret,VarGetType($ret)) Func _TEST() SetError(0) EndFunc
It is defined:
it is Int32
and
it is = 0
Why not specified explicitly:
SetError ( code [, extended = 0 [, return value = 0]] )
[optional] The value to be returned by the function - default is 0 .
Return Value Returns the "return value" parameter, @error and @extended will be set to the values set in the function call (both default = 0)
Attachments (0)
Change History (2)
comment:2 by , 12 years ago
| Version: | 3.3.8.1 → 3.3.12.0 |
|---|
comment:3 by , 12 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

This has been discussed before between Jon and myself, with the conclusion being it should remain as is. I am closing the ticket as "no bug".