Thanks!
I am not sure i understand you and where i am complicating it.
I am using a list (Favorito) because i have sliding panels you can move touching them. Everyone of them has a star. This star is disabled by default (staroff.png). When user clicks it, i want to enable it (loading the staron.png/staroff.png), store that in the list (don't really care if it is a list of boolean or a list of 1s and 0s) and saving the list to disk.
When user clicks the star, i try to get the sender and change the bitmap with staron/staroff but it is not working.
Really i don't see where would you include the boolean? I do not understand your idea.
Sub imvStar_click
Dim send As ImageView
send=Sender
Dim Bitmap1 As Bitmap
Log("F("&send.Tag&")="&Favorito.Get(send.Tag))
If Favorito.Get(send.Tag)=False Then
'ACTIVAMOS FAVORITO
'==================
Favorito.Set(send.Tag,True)
Bitmap1.Initialize(File.DirAssets,"star.png")
Else
'DESACTIVAMOS FAVORITO
'=====================
Favorito.Set(send.Tag,False)
Bitmap1.Initialize(File.DirAssets,"star2.png")
End If
send.Bitmap=Bitmap1
SaveFavoritos
End Sub
I changed it as you say but it is also failing, the problem is not what i use to decide if activate or not, but the send.Bitmap=Bitmap1 that is not working
oh well i think it might be that the send.tag is not sending the correct number on the list
Cheers,