What exactly do you want to do ?
The sw1_ValueChanged event routine is called when you click on the switch and Value returns the switch state.
If the switch is 'ON' Value = True.
If the switch is 'OFF' Value = False.
It's similar to the CheckBox in B4A.
in an pane ia have a switch, if is true when i click on a button go to sub a if switch is false go to sub b ....
but the switch not work in this mode it's every false (the default state)
I don't understand how it work.
This is the view , when i click on button in right bottom, if the switch is on go to 'sub a' if it off go to 'sub b'.
But if i set switch on, when i click the button the value is always off ....
What happens when you click on the Switch ?
Does it change or not.
Otherwise post your project (IDE menu File / Export As Zip) so we can see what you have done and how.
When you zip a project you should do it in the IDE menu File / Export As Zip, as already suggested in post #6.
This way all relevant files are included.
In such cases it might be interesting to make a smaller project showing the problem.
And sometimes, the small one works OK and allows to find the problem (personal experience).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.