Jump to content

sql get selected item in listviewer


Queener
 Share

Recommended Posts

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

54 minutes ago, AutoBert said:

Use one of these:

_GUICtrlListView_GetItemText
_GUICtrlListView_GetItemTextArray
_GUICtrlListView_GetItemTextString

With this maybe:

_GUICtrlListView_GetSelectedIndices

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...