hi everyone how can I take only the second line of a label and take only the number
example
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 ?
Thanks.
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.
can you send me the aia file? Thank you
thanks
thanks you solved my problem!
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.
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
scuse me
It works here...is 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.
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.
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.