Queener Posted October 10, 2016 Share Posted October 10, 2016 (edited) I'm use the ADO.udf for this project. I used this code to read the selected items from the listview. It works fine, but I wanted to pull the string from column 2 selected item instead of showing me the whole column string. Any ideas on how to accomplish this? guictrlread(guictrlread($listview)) Data: Column 1 | Column 2 | Column 3 John | Buy school supply | 25 James | Donate to Charity| 30 Jacob | Buy Misc Items | 40 When I select James (Row 2); it's currently showing: James | Donate to Charity| 30. Which I only need it to show "Donate to Charity". The only reason I'm looking for the second column is if I have to delete the data, I can query to delete the record by user name = James and that status is equal to Donate to Charity. Edited October 10, 2016 by Queener Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.") Link to comment Share on other sites More sharing options...
AutoBert Posted October 10, 2016 Share Posted October 10, 2016 Use one of these: _GUICtrlListView_GetItemText _GUICtrlListView_GetItemTextArray _GUICtrlListView_GetItemTextString Link to comment Share on other sites More sharing options...
genius257 Posted October 10, 2016 Share Posted October 10, 2016 54 minutes ago, AutoBert said: Use one of these: _GUICtrlListView_GetItemText _GUICtrlListView_GetItemTextArray _GUICtrlListView_GetItemTextString With this maybe: _GUICtrlListView_GetSelectedIndices My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser 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