﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1381	_ArraySearch subindex default doesn't match definition	crashdemons	Valik	"Array.au3 :
{{{
Func _ArraySearch(Const ByRef $avArray, $vValue, $iStart = 0, $iEnd = 0, $iCase = 0, $iPartial = 0, $iForward = 1, $iSubItem = -1)
}}}

Array.au3 comment block:
{{{
; Syntax.........: _ArraySearch(Const ByRef $avArray, $vValue[, $iStart = 0[, $iEnd = 0[, $iCase = 0[, $iPartial = 0[, $iForward = 1[, $iSubItem = 0]]]]]])
}}}

AutoIt 3.3.2.0 Help File:
{{{
_ArraySearch(Const ByRef $avArray, $vValue [, $iStart = 0 [, $iEnd = 0 [, $iCase = 0 [, $iPartial = 0 [, $iForward = 1 [, $iSubItem = 0]]]]]])
}}}


The comment block and the help file both indicate the subitem index is defaulted to 0, while the function definition is defaulted to -1.

Furthermore, although advanced users can guess what -1 means, it is not indicated in the help file.

Thanks



"	Bug	closed	3.3.3.0	Documentation	3.3.2.0	None	Fixed		
