If I receive data in string format (I have already split the separators) and I receive a list like the one shown below, how do I do a select list item, because when I want to do it, it tells me that it is not a valid argument.
I have a test DB, in which I have 2 tables, in the first I have ID, product, price, stock, and image. and in the second I have the ID, name and phone number. I want the IDs to be compared and as a result: the same ID (they share it in both tables) and the image, and they are combined with NAME and PHONE from table 2. I don’t know if I explained myself well. to capture this data in a cardview
Use a for each number loop from 1 to length of list, step by 6 (because each item has 6 values):
for each number i from 1 to length of list parsedList by 6:
add item select list item list parsedList index i → to IDList
add item select list item list parsedList index i + 1 → to NameList
add item select list item list parsedList index i + 2 → to PriceList
add item select list item list parsedList index i + 3 → to StockList
add item select list item list parsedList index i + 4 → to ImageList
add item select list item list parsedList index i + 5 → to CodeList