B4A Library [B4X][LOA] ListOfArrays - lightweight, powerful and flexible collection - Erel    May 28, 2026   (30 reactions) ListOfArrays (LOA) is a simple list where each item is an array of objects, and each array represents a row. As LOA stores tabular data, all rows have the same length.
LOA is lightweight and a list... B4A Library [B4X][LOA] DBQuery - SQL made easy - Erel    May 20, 2026   (24 reactions) /android/forum/threads/b4x-loa-listofarrays-lightweight-powerful-and-flexible-collection.170543... B4A Code Snippet [B4X][LOA] ListOfArrays with 1D data - Erel    May 21, 2026   (7 reactions) ListOfArrays data structure can be useful even with single dimensional data.
LOA v0.96 adds a helper method for creating such LOAs:
Dim colors As ListOfArrays = LOAUtils.CreateFrom1DList("Color", Array("red", "green", "blue"))
The header is optional. Pass... B4J Code Snippet [XLUtils] [LOA] Reading and writing Excel data with ListOfArrays - Erel    May 10, 2026   (6 reactions) :\Users\H\Downloads\Countries of the world.xlsx", "", 0) 'Select a range to be read as a LOA: Dim loa As ListOfArrays = res.GetListOfArrays(xl.CreateXLRange(xl.AddressName("B4"), res... column. Need to clean... Dim ls As LOASet = loa.CreateLOASet Do While ls.NextRow Dim CountryName...) Loop loa.Sort("Population", False) 'print a few columns: Log(loa.ToListOfArrays(Array...(5)) 'get data of single country: Dim Zim As ListOfArrays = loa.GetRowsByValue("Country... B4A Code Snippet [B4X] [LOA] ListOfArrays <--> B4XTable - Erel    Apr 9, 2026   (6 reactions) Visualize a LOA with B4XTable: Private Sub ShowLoaInTable(loa As ListOfArrays, table As B4XTable, DateColumns As List) table.Clear If loa.IsEmpty Then Return If loa.FirstRowIsHeader... As Int In loa.ColumnIndices Dim ColType As Int Dim ColName As String = loa.Header(col... ColType = table.COLUMN_TYPE_DATE Else Dim FirstValue As Object = loa.GetValueDefault....SubList(loa.mInternalArray, loa.mFirstDataRowIndex, loa.mInternalArray.Size)) End Sub Usage example... B4J Code Snippet [PyBridge] [LOA] ListOfArrays - DataFrames - Erel    Apr 8, 2026   (10 reactions) LOAs to DataFrames and vice versa. 'Adds a converter that converts dataframes to a list of arrays (not LOA yet) when a dataframe is fetched. Private Sub AddDataFrameConverter Dim Pandas..., name=None))")) End Sub 'Converts a LOA to DataFrame. Public Sub LOAToDataFrame (LOA As ListOfArrays) As PyWrapper Dim Code As String = $" def LOAToDataFrame (LOA): df = pandas.DataFrame(LOA, columns=LOA) return df "$ Return Py.RunCode("LOAToDataFrame"... B4J Code Snippet [LOA][PyBridge] Plotting with ListOfArrays - Erel    Jun 4, 2026   (8 reactions) https://www.b4x.com/basic4android/images/java_m80Ey6jU1E.gif As mentioned here: https://www.b4x.com/android/forum/threads/pybridge-loa-listofarrays-dataframes.170772/ ListOfArrays can be converted... are: 'Converts a LOA to DataFrame. Public Sub LOAToDataFrame (LOA As ListOfArrays) As PyWrapper Dim Code As String = $" def LOAToDataFrame (LOA): df = pandas.DataFrame(LOA, columns=LOA) return df "$ Return Py.RunCode("LOAToDataFrame", Array(LOA.mInternalArray), Code) End... B4J Code Snippet [B4X][LOA] Fast access to columns of ListOfArrays makes a difference - William Lancee    May 28, 2026   (6 reactions) to first transform the LOA to a Map of Lists (MOL). Note: Table created with wLOAExtras... https...://www.b4x.com/android/forum/threads/time-for-a-loa-quiz.171138/ 'A 1000000 x 3 table of random numbers between 0 and 360 ('LOA4' in code below) 'c_1 c_2... = DateTime.Now Dim MOL As Map = wLOAtoMOL(LOA4) Log(DateTime.Now - markTime) '41 msecs... For i = 1 To 100 Dim j As Int = 1 + i Mod 3 Dim c_j As List = LOA4.GetColumn... B4A Question LOA vs MinimaList - aeric    Mar 12, 2026   (4 reactions) https://www.b4x.com/android/forum/threads/b4x-loa-listofarrays-lightweight-powerful-and-flexible-collection.170543/ https://www.b4x.com/android/forum/threads/b4x-minimalistutils.155724/ Which one is better? My answer: Depends LOA is list of arrays MinimaList is list of maps In LOA, you can convert between List and ListOfArrays. In MinimaList, you cannot convert your List directly at the moment. Each item as type of Maps is added to the internal list. Instead of accessing the item using... B4A Question RE: [B4X][LOA] ListOfArrays - MrKim    Mar 20, 2026   (2 reactions) This page https://www.b4x.com/android/forum/threads/b4x-loa-listofarrays-lightweight-powerful-and-flexible-collection.170543/#content
has two attachments for download. Both with the same name... Page: 1   2   3   |