I have a form that has a listview in which I add a class multiple times. The class returns a pane that is added to the listview like ...
form code ...
class code ...
How do you read later, from the form, the value of IamHere since all I am storing in the listview is the PANE of that class?
form code ...
B4X:
for x = 1 to 10
private address as clsAddress
address.initialize
address.IamHere = True ' a Public Variable in the clsAddress class
lvAddresses.Items.Add(address.asPane) ' The Listview
next
class code ...
B4X:
Sub Class_Globals
Private ThisPane as Pane
Public IamHere as Boolean
End Sub
Public Sub asPane as Pane
ThisPane.Initialize("ThisPane")
ThisPane.LoadLayout("Address")
Return ThisPane
End Sub
How do you read later, from the form, the value of IamHere since all I am storing in the listview is the PANE of that class?