Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

Substitute for ItemData property in ListView

$
0
0
I'm trying to display some previously stored data when a ListView is clicked which I previously did using a ListBox like so:

Code:

Record_Position = Game_List.ItemData
Game_Channel = FreeFile
Open Game_File For Random As Game_Channel Len = Game_Length
    Get Game_Channel, Record_Position, G
        Title_Label.Caption = Trim(G.Game_Title)
        Price_Label.Caption = "£" + Trim(G.Game_Price)
        Developer_Label.Caption = Trim(G.Game_Developer)
        Publisher_Label.Caption = Trim(G.Game_Publisher)
        Age_Label.Caption = Trim(G.Game_Age)
        Release_Label.Caption = Trim(G.Game_Release)
        Stock_Label.Caption = Trim(G.Game_Stock)
Close Game_Channel

However ListView doesn't hold the ItemData property so I need a different property to do this. Any help would be appreciated! :)

Btw, I'm looking for the simplest solution, not necessarily the best solution, I need to understand it! :p

Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>