B4J Question list of lists? - Erel (first post)    Sep 03, 2018   (2 reactions) Always prefer lists over arrays.
A list can hold any type of objects including other lists.
Dim MainList As List
MainList.Initialize
For i = 1 to 100
Dim l As List
l.Initialize
l.Add(i)
MainList.Add(l)
Next
Dim l As List = MainList.Get(54)
Log(l) B4A Question List of list has (String) in front - William Lancee (first post)    Aug 25, 2022   (1 reaction) 'SHOULD BE
Dim Items As List = outerlist.Get(i)
Log(items.Get(0))
First part is wrong too.
You are confusing Lists with Arrays.
If you make the inner list an array of objects you're good to go.
Dim outerlist As List = Array(Array("some string", 1, 2), Array("some other string", 3, 4), Array B4A Code Snippet List Folders or ListFiles - hibrid0    Jun 19, 2015   (12 reactions) Hi I shared a simple code to get a list of folders or Files without folders
Get List Folders
Sub ListFolders(dir As String)
Dim list_files As List
Dim lista_folders As List
lista_folders.Initialize
list_files=File.ListFiles(dir)
For i= 0 To list_files.Size -1
If File.IsDirectory(di B4A Question Copy Listview (AddTwoLinesAndBitmap2) item to another Listview - emexes (first post)    Dec 28, 2022 +1 but with the added clue that the List should be a single List of a User Defined Type having three fields (eg: name, packName As String, icon As Bitmap?) rather than three separate Lists. then sort using https://www.b4x.com/android/help/collections.html#list_sorttype where "remove, replace" i German List - letzter Eintrag als erstes anzeigen - DonManfred (first post)    Apr 05, 2016   (1 reaction) kleine sub erstellen und alte liste übergeben
in der sub dann
- neue liste erstellen
- for hinten nach vorne durchgehen und werte in neue liste schreiben (for i= liste.size -1 to 0 step -1)
- neue liste dann au der sub zurükliefern Italian lista e sqlite - Gianni M (first post)    May 08, 2024   (2 reactions) ok, visto che modifichi la lista "LISTA_DATO", potresti procedere in questo modo: For i = 0 to LISTA_DATO.Size-1 Dim query as String = $"update IMPOSTAZIONI set DATO = '${LISTA_DATO.Get(i)}' where ATTIVO = '${LISTA_ATTIVO.Get(i)}' "$ sql.ExecNonQuery(query) Next considera l'utilizzo di una " B4A Question Panel (ViewGroup) AddView Index - DonManfred (first post)    Feb 25, 2015   (1 reaction) I believe it is a LIST Spanish Texto en etiquetas elegidas por software - Objetos con índice? - angel_ (first post)    Apr 19, 2022   (1 reaction) Prueba así:
Sub RellenarEtiquetas
Dim lista1 As List = Array(lbl3, lbl4, lbl5, lbl1, lbl2)
For i = 0 To 4
Dim et As Label = lista1.Get(i)
et.Text = i + 1 ' De momento texto = 'i + 1' para rastrear...
'et.Text = Rnd(100, 200) - O los valores q B4A Question Draw a Polygon on a Map - MarcoRome (first post)    Aug 07, 2019   (1 reaction) Dim lista_punta as List B4A Question B4XComboBox IndexOf problem - Mahares (first post)    Jan 03, 2023   (1 reaction) This works too: Dim list1 As List list1.Initialize For i = 1940 To DateTime.GetYear(DateTime.Now) list1.Add(i.As(String)) Next B4XComboBox1.SetItems(list1) Page: 1   2   3   4   5   6   7   Powered by ColBERT |