Modify

Opened 16 years ago

Closed 16 years ago

#1381 closed Bug (Fixed)

_ArraySearch subindex default doesn't match definition

Reported by: crashdemons Owned by: Valik
Milestone: 3.3.3.0 Component: Documentation
Version: 3.3.2.0 Severity: None
Keywords: Cc:

Description

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

Attachments (0)

Change History (2)

comment:1 by crashdemons, 16 years ago

If you can't read what's in the boxes in this Issue, it's probably because I used a single line - your browser may make the scrollbar cover the text...

Regardless, Here are the entries outside of the boxes

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]]]]]])

comment:2 by Valik, 16 years ago

Milestone: 3.3.3.0
Owner: set to Valik
Resolution: Fixed
Status: newclosed

Fixed by revision [5495] in version: 3.3.3.0

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


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