Jump to content

Recommended Posts

Posted (edited)

I'm getting an error within the INCLUDE, using the help file's sample code. The error occurs when clicking on one of the column headers which then executes the _GUICtrlListView_SimpleSort call.

d:\Program Files\AutoIt3\Include\GuiListView.au3 (6769) : ==> Array variable subscript badly formatted.:

$b_desc = $vDescending[$iCol]

$b_desc = $vDescending[^ ERROR

Using recent build so that should not be an issue

I have highlighted the code snippet that is producing the error.

Func _GUICtrlListView_SimpleSort($hWnd, ByRef $vDescending, $iCol)

If $Debug_LV Then __UDF_ValidateClassName($hWnd, $__LISTVIEWCONSTANT_ClassName)

If _GUICtrlListView_GetItemCount($hWnd) Then

Local $b_desc

If (IsArray($vDescending)) Then

$b_desc = $vDescending[$iCol] ;>>> Line 6769 <<<<

Else

$b_desc = $vDescending

EndIf

Edited by Jdop
Posted
  Quote

I'm getting an error within the INCLUDE, using the help file's sample code. The error occurs when clicking on one of the column headers which then executes the _GUICtrlListView_SimpleSort call.

AutoIt v3.3.6.0 example works for me.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...