Android Question object type/Sender

qsrtech

Active Member
Licensed User
Longtime User
I'm having a weird situation:
When I create a "switch" using a switch library and log(ASwitch) 'dim ASwitch as switch
It logs this
anywheresoftware.b4a.objects.SwitchWrapper@429a8f90

Then when I log the "Sender" in the "CheckedChange" event if gives me this:
anywheresoftware.b4a.objects.SwitchWrapper$1@429d4e00

Any idea what's going on? I store the switch in the tag of it's parent so I can figure out which one it is latter, cause it's not a "view" so theres no way to really find it.
 
Last edited:
In your click-sub you can translate the sende to the right object

Code: Copy
dim sw as switch = sender

after that you can log(sw) or use the members of that switch with for ex log(sw.Tag)
 
Upvote 0
Back
Top