Modify ↓
Opened 15 years ago
Closed 15 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 Changed 15 years ago by crashdemons
comment:2 Changed 15 years ago by Valik
- Milestone set to 3.3.3.0
- Owner set to Valik
- Resolution set to Fixed
- Status changed from new to closed
Fixed by revision [5495] in version: 3.3.3.0
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.
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]]]]]])