Element Selection

How can i select element by text, not element.
component_component_block

Use one of the browser extensions that add a Find facility to the Blocks Editor:

I mean in programming. Instead of using component blocks, how can we use text.

Hi

Can you explain in more detail what it is you are trying to do?

You mean you want to write text-based code instead of using Blocks? It's possible to write JavaScript and call that, but Blocks are fundamental to App Inventor's paradigm.

There are some good text-based languages for coding Android Apps. Java, Kotlin, B4A, Spider Basic.

Sure. Like using this
text
instead of this
component_component_block (1)

I see, got there in the end. :upside_down_face:

...and no, you can't do that. The Blocks each have a unique identity code that is used in the underlying XML files that describe your App code.

...but why would you want to do that anyway? It's more onerous and any typo would invalidate your code.

Thanks a lot. I just wanted to know.