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 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 Italian (Risolto) Polpolare clv 50 record per volta - Lucas Siqueira (first post)    Nov 21, 2024   (1 reaction) "João", "Helena", "Gabriel", "Isabella", "Bernardo", "Lorenzo")
Private Sobrenomes As List = Array As String("Silva", "Santos", "Oliveira", "Souza", "Pereira", "Lima", "Carvalho", "Ferreira", "Ribeiro", "Almeida")
Private Cidades As List = Array As String("São Paulo", "Rio de Janeiro", "Belo Spanish SOLUCIONADO selectedChange de un B4XRadioButton creado por código - josejad (first post)    Nov 14, 2024 Y cómo defines ListaOpciones? B4A Question Draw a Polygon on a Map - MarcoRome (first post)    Aug 07, 2019   (1 reaction) Dim lista_punta as List B4A Question DBUtils.ExecuteMemoryTable Problem - William Lancee (first post)    Jan 18, 2020 I don't know what you have in lista...
Dim lista As List
lista=DBUtils.ExecuteMemoryTable(Connection.mySQL, "SELECT * FROM LavoroTB", Null, 0)
But the following works fine:
Dim lista As List: lista.initialize
lista.Add(Array As String("aaa", "bbb", "ccc"))
Dim str() As String
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 B4J Code Snippet Search in a List - Brian Michael    Jun 13, 2024   (5 reactions) Dim Names as List = Array as String("Alejandro", "Ana", "Antonio", "Alicia", "Andres", "Beatriz", "Bruno", "Blanca", "Benjamin", "Barbara", "Carlos", "Carmen", "Claudia", "Cristina", "Cesar", "Diego", "Daniela", "David", "Diana", "Dolores", "Elena", "Eduardo", "Emilia", "Esteban", "Elisa", "Fernando B4A Question Another Filewrite Permission question - Hobby4Life (first post)    Nov 06, 2019 Sub SaveINI
Dim List1 As List
List1.Initialize
List1.Add(Timeslot_Spinner1.SelectedIndex)
List1.Add(Timeslot_Spinner2.SelectedIndex)
List1.Add(Timeslot_Spinner3.SelectedIndex)
List1.Add(Timeslot_Spinner4.SelectedIndex)
List1.Add(Timeslot_Spinner5.SelectedIndex)
Li Page: 1   2   3   4   5   6   7   Powered by ColBERT |