How to select text from a column of a List View?
Hey, folks!
Now that StephenL has taught me how to automatically place content into each column of a List View object, I am now struggling with how to get the string content from a specific column.
So, I have a List View object with two columns of strings. The second column contains a file URL to open a HTML file in a Web Control object; the first column simply reads a document name in which the HTML file belongs.
So, what I'm trying to do is find a way in which if the user double-clicks in the first column, that the content of the second column for its corresponding row is sent to the Web Control object. And, likewise, if the second column is double-clicked, then that cell's content is sent to the Web Control object.
I imagine it's pretty easy to do--I just don't know how! I've been smacking my head against the proverbial wall on this for almost an hour.
Thank you for your help, folks!
Most graciously...
RGBreality
Re: How to select text from a column of a List View?
You could just match the colum ID with the array in my example and use that path, since it is basically the same thing. ;)
Re: How to select text from a column of a List View?
It should be relatively simple. If you would like a quick example, let me know. :)
Re: How to select text from a column of a List View?
Hey, StephenL!
Yeah, I would love a quick example! You might be able to author the expression right on the forum, rather than sending an application file.
The expression I'm trying to use presently goes something like this:
Text$("ListView",ItemClick("ListView"), 2)
Which (I thought) stated roughly to "get the text from the ListView object at the clicked item and at the second column."
But perhaps I have that wrong...
Thank you again!
RGBreality
Re: How to select text from a column of a List View?
Sure. Here is a very simple example that should show you how to know what the user is clicking on. Hope it helps. :)