How to create a list in a list?

I want to create another section in a single list variable. How can I do that?
Example: I have declared an empty list variable named as “A”. Now I want to create another list in the same list “A” and another section “B” in it. Just like an array!

use the add items to list together with the sublist as item

Taifun

3 Likes

Thanks for your reply! But how can I store some values in the specific section in the list? Example: If i created only one list variable as “User details” and created 2 columns in it: One for phone number and one for email address. Then how can I store phone number and email address separately in the specific columns in a single list variable?

http://appinventor.mit.edu/explore/ai2/support/blocks/lists#additems
http://appinventor.mit.edu/explore/ai2/support/blocks/lists#makealist

add items to list listUserDetails
                  make a list textboxPhoneNumber.Text
                              textboxEmailAddress.Text

Taifun

2 Likes

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.