Jump to content

Recommended Posts

Posted (edited)

EDIT: Figured it out. Sorry for wasting your time. Just in case others end up in this situation the code that worked is this:

$iVar = 2
_GUICtrlListView_SetItemSelected ($ListView, Number($iVar))

Can any one tell me why this works:

_GUICtrlListView_SetItemSelected ($ListView, 2)

But this doesn't:

$iVar = 2
_GUICtrlListView_SetItemSelected ($ListView, $iVar)

I need to store the selected item in a list view and then reset it after I run a function. Seems like it should work but the SetSelectedItem function does not seem to accept a variable.

If this is as intended, is there another way to make this work?

Thanks

cj

Edited by CMJ

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...