Obtener ítems de texto digitado

consulta

cuento con este texto digitado en un Lavel y quisiera obtener el segundo y el cuarto en lavels diferentes
image

image

ósea
en Lavel1 que aparesca 03 02 2023 13:44:00
en Lavel2 que aparesca 03 02 2023 13:44:25

¿alguna idea?
saludos

split text at \n then get items 2 and 4 from that list

1 Like

si eso quiero obtener los elementos 2 y 4
creo que ese lavel que contiene todo el texto tengo que pasarlo a lista
es así?
tendrán algún ejemplo?

image

image

esta bien pero el Label1 ya contiene el texto que es esto
image
image

como hago para reemplazarlo y tome el contenido de Label1
image

set global rawData to get Label1.Text

it looks like you should really learn some basics...

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 Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html 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.

me hubiese gustado un ejemplo para resolver mi problema en corto tiempo
pero bueno estudiare los links que enviaste te lo agradezco
saludos

Was there a problem with my example, which answered your original question ?

si esta bien pero como repito ya cuento con el contenido en el Label1 lo de celeste
image
image

es de allí que quiero tomar los ítem 2 y 4
image
quisiera saber como reemplazarlo
saludos

Replace what, with what ?

My example showed just the contents of items 2 and 4

si tu ejemplo esta bien pero tu pones el texto
image

yo el contenido de mi texto lo tengo en
image

eso es lo que quiero reemplazar

From the above, what will Label1.Texto show ?

image :question:

image
lo de rojo es mi texto que esta en Label1 esto lo obtengo de fb
presiono el botón
y en la etiqueta 44 deberían salir los ítems 2 y 4

Looks like I am going to have to answer my own question!!!

From what you say, you want Texto para Etiqueta44 to show:

03 02 2023 13:44:00
03 02 2023 13:44:25

Yes :question:

correcto

One of many ways you could do this:

obtengo esto
image

necesito esto
03 02 2023 13:44:00
03 02 2023 13:44:25

correcto !

aun no
necesito esto
03 02 2023 13:44:00
03 02 2023 13:44:25

About time you did some work. Apply the blocks provided to your data/aia project. Does it work ?