Jdop Posted March 20, 2010 Posted March 20, 2010 (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 March 20, 2010 by Jdop
picaxe Posted March 20, 2010 Posted March 20, 2010 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.
Jdop Posted March 21, 2010 Author Posted March 21, 2010 Not sure what's wrong, but the sort is working outside of that example, so I will drop the matter.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now