Im trying to load the items which I receive from a Mysql query
This is a pic of what the query returns. It’s perfect cause it contains all the data, separated by a space that I need to place into variables but I don’t know how to do it
You have had many useful examples provided. You have asked this question on the App Inventor forum as well. Here are some blocks following the worded answer you received there. I have only written out 7 (seven) elements in the string, and set the outputs to labels, you can modify this example to save to tinydb tags (Would be better to save the list to a single tag, in my opinion). Apologies to Kodular users/mods for the AI2 blocks
This should resolve your issue.
Once you have your string converted to a list, you have all your outputs “in a variable”.
Use text replacement blocks to remove the parentheses (())
Convert what remains to a list using the text split by spaces block
Select each item from the list and assign to your chosen variables
In future, and as advised several times by me and others, if you are developing in a particular builder, please ask your questions in the builder that you are using, because the builders (App Inventor, Kodular, etc.) are becoming more different day by day and an answer given on for one builder may not apply or work on another.
You may also want to do some learning about lists:
Change to alarm_list.
In its place, put that variable that received the response content there in your first post. (alarm_list)
This variable that contains your return.