See only the second line of a label and get only the number

hi everyone how can I take only the second line of a label and take only the number
I was walking when i saw
the route 66
and I want to take the number 66 and put it in another label can anyone help me ?


You would need the width in pixels of the text.

I did some experiments on that but can't get to it for some hours.

1 Like

can you send me the aia file? Thank you

getNumber2ndLine.aia (2.2 KB)

blocks (24)

1 Like


thanks you solved my problem!

1 Like

it's not working anymore I don't know why it doesn't work on any of my devices I'm using the companion but until recently it worked
getNumber2ndLine_1.aia (2.3 KB)

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.


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

scuse me

It works there any specific example which doesn't work for you?

I misread the problem.

You just want the last word of the text.

Split at blanks regardless of line breaks, and take the last item.

1 Like

its not working for me

In the second line, there are not several words where there is one like a number...If you see the solution it is splitting the words and checking which is a number

you can try this other for the new casuistic:

It will take all the numbers in the second line regardless of whether they are separated into a word or as part of a word.

1 Like

Ok now It works thanks for helping me

you're welcome

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