B4A Question Inexplicable problem using "Contain" function. - aeric (first post)    Aug 30, 2023   (1 reaction) File.ListFiles returns the list of files and pass to your locally defined list.
Dim ll As List = array is not creating a new object but make a reference to the original object.
If the original object cannot be remove, so as your new define list.
You need to use a loop to add the item one by one t Bug? File.ListFiles(File.DirAssets) different behaviour B4A / BaJ - klaus    Feb 12, 2020   (4 reactions) There is a difference between B4A and B4J with File.ListFiles(File.DirAssets).
This code works in B4A but not in B4J:
For Each FileName As String In File.ListFiles(File.DirAssets)
This code works in B4J but not in B4A:
For Each FileName As String In File.ListFiles("../files/")
For cross-platform p B4A Question File.ListFiles(File.Assets) in Debug - lip    Sep 21, 2021 I'm using the DirAssets folder to store text files which are used in my App.
If I look in the files explorer there are 21 of these files. If I look in the files tab of the B4A IDE there are also 21 files. I have synchronised the Files tab, and used clean files and clean project.
'Get files B4A Question File.ListFiles behaving unexpectedly - Erel (first post)    Mar 14, 2022 The folder probably doesn't exist. File.ListFiles returns an uninitialized list if the folder is not accessible.
Dim lstFile As List=File.ListFiles(File.Combine(File.DirInternal, "Pldata"))
Log(lstFile)
If lstFile.IsInitialized Then
lstFile.Sort(True)
End If B4J Question How to read metadata from a TTF file - zed (first post)    Apr 10, 2024 like this, it's much better.
File.ListFiles("C:\Windows\Fonts")
Thank you for your answers B4A Question File.ListFiles sorted by size - Eme Fibonacci (first post)    Mar 02, 2019   (6 reactions) Maybe something like this:
'ON Process_Globals
Type NameAndSize(name As String, size As Long)
'...
Dim list1 As List
list1=File.ListFiles(File.DirInternal&"/mydir")
Dim list2 As List :list2.Initialize
For i=0 To list1.Size-1
Dim fns As NameAndSize : fns.Initialize
fns.name=list1.Get( B4A Question List.Clear crush - Erel (first post)    Aug 13, 2019   (1 reaction) It will not work.
See File.ListFiles documentation: https://www.b4x./?query=file.listfiles
It returns a read-only list.
If you need to modify it:
Dim list1 As list1
list1.Initialize
list1.AddAll(File.ListFiles(...)) B4A Question Strange behaviour from File.listFile - Erel (first post)    Dec 28, 2021 File.ListFiles returns an array. You are adding the complete array as a single element.
Dim lifi As List = File.ListFiles(...)
'or if you want to have a modifiable list (which I'm pretty sure isn't the case here):
Dim lifi As List
lifi.Initialize
lifi.AddAll(File.ListFiles(...)) B4A Question File.ListFiles only listing folders - Luthier    Dec 18, 2023 My app compiled with B4A 12.80, and running on a Samsung Tablet with Android 13, is supposed to list folders and files in a selected folder, but is only showing the folders.
Both File.ListFiles and File.ListFilesAsync do not show files within the selected folder.
I like the simplicity of the File.Li B4J Question Example of a TreeView in Java - aeric (first post)    Jan 20, 2024   (4 reactions) ListFiles(File.Combine(Directory, File1))
Dim cti As TreeItem
cti.Initialize("ti", File2)
ti.Children.Add(cti)
Next
End If
TreeView1.Root.Children.Add(ti)
Next
End Sub
149900 Page: 1   2   3   4   5   6   7   Powered by ColBERT |