﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1122	_MathCheckDiv. No error return value.	anonymous	Gary	"Is using SetError(1) after Return. They need to be swapped.
{{{
Func _MathCheckDiv($i_NumA, $i_NumB = 2)
	If Number($i_NumA) = 0 Or Number($i_NumB) = 0 Or Int($i_NumA) <> $i_NumA Or Int($i_NumB) <> $i_NumB Then
		Return -1
		SetError(1)
	ElseIf Int($i_NumA / $i_NumB) <> $i_NumA / $i_NumB Then
		Return 1
	Else
		Return 2
	EndIf
EndFunc   ;==>_MathCheckDiv
}}}
ps: Any reasons for not using ""Return SetError(1,0,-1)""?, apart from ""was written before SetError(Er,Ex,Rt) support"" of course.
just curious."	Bug	closed	3.3.1.2	Standard UDFs	3.3.1.1	None	Fixed	MathCheckDiv	
