Ghost21 Posted January 12, 2009 Share Posted January 12, 2009 $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 ??? Link to comment Share on other sites More sharing options...
smashly Posted January 12, 2009 Share Posted January 12, 2009 Try: $PC = _GUICtrlListView_GetItemText($ListView, Int($Selected)) Link to comment Share on other sites More sharing options...
Ghost21 Posted January 12, 2009 Author Share Posted January 12, 2009 Try:$PC = _GUICtrlListView_GetItemText($ListView, Int($Selected))Thanks that worked perfect... Why wouldn't my way ? Link to comment Share on other sites More sharing options...
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