Jump to content
Sign in to follow this  
Ghost21

List view Issue

Recommended Posts

Ghost21

$Selected = _GUICtrlListView_GetSelectedIndices($ListView)

$PC = _GUICtrlListView_GetItemText($ListView, $Selected)

MsgBox(0, "PC", $PC)

^^^^^^^^^^^ Why when I run that it doesn't show the PC name ? ^^^^^^^^

BUt if I run it like this

$Selected = _GUICtrlListView_GetSelectedIndices($ListView)

$PC = _GUICtrlListView_GetItemText($ListView, 5)

MsgBox(0, "PC", $PC)

It shows the name ???

Share this post


Link to post
Share on other sites
smashly

Try:

$PC = _GUICtrlListView_GetItemText($ListView, Int($Selected))

Share this post


Link to post
Share on other sites
Ghost21

Try:

$PC = _GUICtrlListView_GetItemText($ListView, Int($Selected))

Thanks that worked perfect... Why wouldn't my way ?

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  

×