Get Value From Button

image_2023-12-22_214456132

How can i take the button value to display i would like to make it like keyboard,

On Button Click return Button.Text (use downcase if you want lowercase)

After you grab the Button.Text,

set Textbox.Text to JOIN(Textbox.Text, Button.Text)

1 Like

Wow i got it, next question how can i make it string cuz now when i click another button it replace the previous one.

if you followed the advice rom @ABG, then it should work correctly...

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


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

Like this its, a keyboard

But


If i click another button it will replace it, It cn only store 1 button, how can i make it into length/string?

you forgot to use the join block to join the already entered text (which is Textbox1.Text) and the current button text as @ABG already suggested

Taifun

where to get that JOIN block

Unbenannt

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... 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 Course In A Box and 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...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.