B4A Question Clear list, unexpected result? [Solved] - PaulMeuris (first post)    May 07, 2022   (2 reactions) If you write:
listB.AddAll(listA)
The contents of listA is added to the contents of listB.
The clear method removes all the items from the list (listB)
So now listA remains the same! B4A Question auto declare inline variable/object - ilan (first post)    Oct 19, 2021 newlist.As(List).AddAll(l)
this snippet should return already a declared list named newlist with all items added from list "l"
ITS A WISH!! Bug? List.Sort by iOS 18 - Erel (first post)    Sep 18, 2024   (5 reactions) This works: Dim lst As List lst.Initialize lst.AddAll(File.ListFiles(File.DirDocuments)) lst.Sort(True) Log(lst) B4A Question [Solved] Job.GetString to List - drgottjr (first post)    Aug 30, 2024   (2 reactions) i don't fully agree with the selections on the list, but i would use regex.split() and list.addall(). i'm guessing the string uses crlf (or possibly "\r\n", depending). so split the string on crlf to get an array of strings and then create a list and call addall. dim result as string = job.getstrin B4J Question Weird List Add problem - josejad (first post)    Nov 25, 2020 Hi:
Without knowing why the error is produced (and that's probably what you want to know, instead another solution), have you tried with:
AddAll (List As List)
Adds all elements in the specified collection to the end of the list.
Note that you can add an array directly.
Example:
List.AddAll(Array B4A Question Select Case - LucaMs (first post)    Dec 20, 2024   (1 reaction) I can't forget B4XSet, for the simple reason that to this day I still haven't "read" its advantages properly 😁 😊
Your source with Lists instead of B4XSets:
Dim lstBoys As List
lstBoys.Initialize
lstBoys.AddAll(Array As String("Adam","Fred","John"))
Dim lstGirls As List
lstG B4A Question How to implement huge lookup table - Peter Simpson (first post)    May 28, 2015   (2 reactions) Here you go @Arf. Below is an example of a list. I would read your values from a database if possible though. 'Example Dim Listy As List Listy.Initialize Listy.AddAll(Regex.Split(", ", "3.0, 1.3876, -0.0221, -0.0832, 3.25, 1.2621, -0.0191, -0.0616, 3.5, 1.1460, -0.0167, -0.0420" B4A Question Choose a random between 4 strings - Erel (first post)    Apr 19, 2021   (2 reactions) Quiz:
What is the difference between:
Dim MyList As List
MyList.Initialize
MyList.AddAll(Array ("no", "yes","ooo","test","yyy","nnn"))
And:
Dim MyList As List = Array ("no", "yes","ooo","test","yyy","nnn")
? B4J Library [B4X] [B4XLib] [XUI] SD_xMultiSpinner - Star-Dust    Oct 14, 2022   (15 reactions) NOTE: You can use this library for personal and commercial use. Include it in your projects. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author SD_xMultiSpinner Author: Star-Dust Version: B4J Question Elements in multi-dimensional lists - EnriqueGonzalez (first post)    May 01, 2016   (2 reactions) You are welcome.
AND there is an even more "simpler" but not so practical way. if the number of list is known you can create something like this:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("UNIFIED")
'MainForm.RootPane.LoadLayout("Layout1") 'Load the la Page: 1   2   3   4   5   6   7   Powered by ColBERT |