[FR/EN][Beginner] Need help for global var!

Hi, im a beginer and I wanted to ask you guys some help.
So I want that when i press the button 2 “allumer les lumières” all of the switches get On!
If someone could send me the code i really cant do it im searching for it since 2 days with tutorials but in view of my english i cant understand everything thank you guys.
Here are the pictures :

Welcome.

You might try
Switch
and read the following stuff:

Here are some resources to help you learn to use the AI2 tools. The book can be viewed with Google translate and because it has LOTs of figures should help you a lot > A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook http://www.appinventor.org/book2 … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.

There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles

How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also look here http://kio4.com/appinventor/index.htm and here http://www.imagnity.com/tutorial-index/ for more tutorials.

1 Like

or this:

1 Like

Hello,
Thank you first of all for your answer but the problem is that the button and the switches arent on the same page. I’ll check these links thank you !

im trying this out thank you for helping

up sadly the answers that u guys gave me arnt working.
I want the button 2 from the screen “espace” to be able when we click it to switch on all the switches from the screen “visualisation” does anyone know how to do :c

Try this to store Switch.On in TinyDB and to be able to use that in another screen:

1 Like

i feel a bit ashamed but i really cant find the block " Set switch On Of component" and i also cant find “call … .storeValue
tag
valuetostore”

try this switch.aia (4.1 KB)

you can find the advanced blocks in the Any component drawer
see also How to work with the advanced features
Please see also the official documentation of the Any Component blocks.

you can find it in the TinyDB drawer

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.