Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (202 - 204 of 3868)

Ticket Resolution Summary Owner Reporter
#3737 Fixed _ArrayUnique fails on single element array when base set to 1 Melba23 Melba23
Description

When using the $iBase feature to ignore the first element, the function hard fails on a single element array.

Global $aArray[1] = ["test"]    ; add a single row to the array
_ArrayUnique($aArray, 0, 1)     ; Arguments: $iColumn = 0, $iBase = 1 (1-based)

See https://www.autoitscript.com/forum/topic/200645-bug-_arrayunique-doesnt-handle-array-with-1-row-when-1-based-is-enabled/

M23

#3736 Duplicate _GUICtrlTreeView_Sort fails when there is just one item in TreeView Andy289
Description

I know that there is nothing to sort if you have just one item but a proper validation should be performed to avoid an array subscript dimension range exceeded error.

Func _GUICtrlTreeView_Sort($hWnd)
    If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)

    Local $iItemCount = _GUICtrlTreeView_GetCount($hWnd)    ; <------------- if $iItemCount = 1
    If $iItemCount Then
        Local $aTreeView[$iItemCount], $i = 0               ; <------------- this array has just an index
        ; get only A child at each level
        Local $hHandle = _GUICtrlTreeView_GetFirstItem($hWnd)
        $aTreeView[1] = $hHandle                            ; <------------- and this would fail
        $aTreeView[0] = 2
        __GUICtrlTreeView_SortGetFirstChild($hWnd, $hHandle, $aTreeView)
        ReDim $aTreeView[$aTreeView[0]]
        $aTreeView[0] = 0

        For $i = 0 To UBound($aTreeView) - 1
            _SendMessage($hWnd, $TVM_SORTCHILDREN, 0, $aTreeView[$i], 0, "wparam", "handle") ; Sort the items in root
        Next
    EndIf

EndFunc   ;==>_GUICtrlTreeView_Sort
#3735 Works For Me _DebugOut all output on one line Jpm anonymous
Description

OK in 3.3.15.0 Not OK in 3.3.15.1

_DebugOut puts all output onto one line, it fails to send CRLF between calls.

#include <Debug.au3>
_DebugSetup("Test")
For $i = 1 To 4
    _DebugOut("Line" & $i)
Next

Output:

Line1Line2Line3Line4

Expected:

Line1
Line2
Line3
Line4
Note: See TracQuery for help on using queries.