Conversione stringa (String conversion)

Buongiorno,ho bisogno di estrarre il nome di una località da una stringa utilizzando Appinventor2 (blocchi)

Esempio
Ho il testo

Via eliodoro Capobianco,13,83051 Nusco Av,Italia

Voglio estrarre Nusco

Grazie per l'aiuto che darete

Split at Spaces (in text blocks) and select the second item.

Why the second ? the fifth

I count Nusco as the 4th item.

Grazie
puoi fare l'esempio con split at spaces ?
Ripeto la richiesta:

Ho il testo:

Via eliodoro Capobianco,13,83051 Nusco Av,Italia

Voglio estrarre Nusco e caricare il risultato in una textbox


(draggable)

Perfetto,bravissimo...un grazie di cuore

Could have sworn that was all one word when I first answered :upside_down_face:

Buongiorno,un altro piccolo aiuto.
Devo estrarre da un file json (vedi screenshot) una immagine "icon":"02d'.
QUESTA IMMAGINE VA inserita nel blocco (vedi screenshot) e visualizzata nell'app.
Il key numerico NON VA BENE,essendo "02d" NON NUMERICO

Puoi completare o correggere lo screenshot ?

Grazie per l'aiuto che puoi dare


Immagine1

How do you get an image from the text '02d'?

How do you get an image from the text '02d'?

THANKS FOR THE REPLY !
image '02d' is offered in string from openweathormap.org when i run the json file. I don't know if they are automatically loaded. I tried to get some from their site by uploading it to my APP The ideal WOULD BE that using the json file, they AUTOMATICALLY appear in the APP

THANK YOU

You have to get all the png files at
https://openweathermap.org/weather-conditions#How-to-get-icon-URL
and load them into your Media folder.

Add .png to the end of the icon name to get the file name.

I HAVE UPLOADED THE IMAGES I SERVE IN MY APP. MAYBE IT'S BETTER
I DON'T KNOW HOW TO DO IT EXACTLY BECAUSE THE KEY IS NOT NUMERICAL

I uploaded the icons.png to my APP....but is the block I sent correct? Is it incomplete? It's useless ?

There is no need to SHOUT, it is considered rude on this community.
Please use normal sentence case text.

I'm sorry, I didn't notice

Your path to the icon value is List From CSV Row('coord,weather,1,icon')
After you get the icon value, do a Text JOIN of it to ".png" to complete the file name.

P.S. I assume you got global response from a Web1.JSONDecodeWithDictionaries against a responseContent text value?

Taking advantage of your kindness you can view the block List From CSV Row('coord,weather,1,icon')

thank you very much

If you can paste the JSON text into this thread, I can prove the blocks work.

A picture of the text is not text.

ok..