Android Question String to check box

Devv

Active Member
Licensed User
Longtime User
Hello all
i have a string that hold a checkbox name
B4X:
string1 = "mycheckbox_1"

how can i use the value of string1 to disable the check box ?

i man something like
B4X:
stringtoobject(mycheckbox1).disabled = true

is that possible ?
 

DonManfred

Expert
Licensed User
Longtime User
is that possible ?
no
You need to build for ex. a map to map the name with the object.
Then you can get the object from the map using the name. Now you can disable....
 
Upvote 0
Top