Android Question value as Object

mscientist33

Active Member
Licensed User
Can someone explain how to use "Value As Object" pertaining to a xCustomListView click event:

xCustomListView is name CLVdevo:
Private Sub CLVdevo_ItemClick (Index As Int, Value As Object)

When I Log the value I get all kinds of good information that I could use but I don't know how to properly access it.
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Do you know the type of the Variable.
You should have set it when you added the panel to the CLV.

For example
B4X:
private data as map
'put info in the map
clv.add(p,data)

then

B4X:
private sub clv_itemclick(index as int, value as object)
private data as map = value
' do what you want with the data
end sub
 
Upvote 0
Top