Facing issues to copy this variable

I have been trying to do a project with this format, but I have no variables named “ConvertWeight”, “ConvertLength”, or “ConvertTemperature”. So how do I name these variables?

This is how my block looks now.

Remove the double quotes from your text blocks for a start

You can have/set global or local variables using the provided blocks

Right click on a block to find Help in the menu.

Actually you are facing issues to learn how to code. This provides a link to a learning text and a free online course:. Significantly more useful than copying existing code or using AI as a source.

Here are some resources to help you learn to use the AI2 tools. 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 Webpage. The book 'teaches' users how to program with AI 2blocks.

There is a free programming course here Course In A Box . The aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps

How to do a lot of basic things with App Inventor are described here: How do you...? .

These “ConvertXX” are procedures ( I imagine to convert sensor values into readable form )

1 Like