So I have a listBox and I am storing a dictionary in the RowTag for each row added to the listBox.
When a row is clicked on I then read the data from the rowTag I get the dictionary.
Oddly no matter what row I click on the dictionary I retrieve from the row is the last one added to the listbox.
I am storing the data using the following code
listEvents.RowTag(listEvents.LastIndex) = storageData
I then retrieve it in another method using
dim eventDateData as New Xojo.Core.Dictionary
eventDateData = listEvents.RowTag(row)
I know I am getting the correct row as the title I am reading directly from the row is the one I click on.
Any idea why I am always retrieving the last dictionary I store?