Modify ↓
Opened 10 years ago
Closed 10 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 Changed 10 years ago by Jpm
- Version changed from 3.3.8.1 to 3.3.12.0
comment:3 Changed 10 years ago by guinness
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
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".