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 J-Paul Mesnage, 12 years ago

Version: 3.3.8.13.3.12.0

comment:3 by guinness, 12 years ago

Resolution: No Bug
Status: newclosed

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".

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.