Sign in to follow this  
Followers 0
basher

_GUICtrlListViewGetSelectedIndices UDF typo

4 posts in this topic

Firstly, my apologies if this is the wrong section of the forums for this note. No flames please, just use your mighty moderator powers and move it. (I have searched the forums for this and get no hits.)

GuiListView.au3

; Include Version:1.66a (28 July 2006)

Line #761 reads:

Dim $v_indices[1]

It should read:

Dim $v_indices[2]

Minor issue. :-)

What the original intention was is to dim an array with 2 members, [0] holding the count and [1] holding the first indice into the listview. As you can see, it doesn't do that.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$v_indices[0] = UBound($v_indices) - 1

Isn't that where the count is set?

Dim $v_indices[1]

Isn't that just creating the array? Since it's preceded by If Not IsArray($v_indices) Then.

Edited by xcal

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  
Followers 0