Making one preference dependent on the value of another

mjtaryan

Active Member
Licensed User
Longtime User
I've seen in some apps where one preference in "Settings" is disabled until another, related preference has been set (usually to "True"). I don't recall seeing how to do that. Will someone clue me in? Thanks.
 

cammel8

Member
Licensed User
Longtime User
Make the dependent one enabled=false. Then on click of the one you want to initiate the other with just put in the sub to enable the first one.

B4X:
label1.enabled=false

sub label2_click
label1.enabled=true
end sub

Something like that
 
Upvote 0
Top