Dim data As List
data.Initialize
data.Add(Array ("Paris", "France", "Europe"))
data.Add(Array ("Kyiv", "Ukraine", "Europe"))
data.Add(Array ("Cairo", "Egypt", "Africa"))
data.Add(Array ("Beijing", "China", "Asia"))
data.Add(Array ("Santiago", "Chili", "America"))
Dim l As List
l.Initialize
For i=0 To data.Size-1
Dim r(3) As String =data.Get(i)
Dim sb As StringBuilder
sb.Initialize
For j=0 To r.Length-1
If j=r.Length-1 Then
sb.Append(r(j))
Else
sb.Append(r(j)).Append(",")
End If
Next
l.Add(sb.ToString)
Next
InputListAsync(l, "Select a place", 0, False)
Wait For InputList_Result (Index As Int)
If Index <> DialogResponse.CANCEL Then
Log("Selected place: " & l.Get(Index))
End If