Sign in to follow this  
Followers 0
Deathboy

GUI Listview

3 posts in this topic

I've read in the help file but can't figure out how to get the text of a selected item in the listview.

The list view has 7"Categories"

$listview = GUICtrlCreateListView("Navn                                    |Født   |Poststed                               |Formue                                |Inntekt                                 |Skatt                                    |Kart                                    ", 1, 46, 998, 550);,$LVS_SORTDESCENDING)

and the items are added with a looping script that sets a bunch of variables and in the end:

GUICtrlCreateListViewItem($line1&"|"&$line2&"|"&$line3&"|"&$line4&"|"&$line5&"|"&$line6&"|"&$line7, $listview)

So I'm wondering how I can retrieve the text under "Kart" in the listview on the item I have currently selected.

After my script has finished adding all the items ofc

Tommy

Share this post


Link to post
Share on other sites

GUICtrlCreateListView() have Example that include reading data from selected row

So after you get your information from the row you can simply split the string on "|" and get data from $var[7]


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

GUICtrlCreateListView() have Example that include reading data from selected row

So after you get your information from the row you can simply split the string on "|" and get data from $var[7]

AAH must have been to tired yesterday when I was working on it ^^ Thanks alot :mellow:

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