Jump to content
Sign in to follow this  
Jdop

_GUICtrlListView_SimpleSort throws error using provided sample code

Recommended Posts

Jdop

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

Share this post


Link to post
Share on other sites
picaxe

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.

Share this post


Link to post
Share on other sites
Jdop

Not sure what's wrong, but the sort is working outside of that example, so I will drop the matter.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.