Sub ListFolderContent(folder AsString) As String
Dim fileList As List
Dim n AsInt
fileList = File.ListFiles(path1)
fileList.Sort(True)
For n = 0To fileList.Size - 1
file1 = fileList.Get(n)
ListView1.AddSingleLine(file1)
Next
End Sub
no problem compiling the code, but a lot of error inside: chek it better.....
B4X:
Sub ListFolderContent(folder AsString) As String
Dim fileList AsList
Dim n As Int
fileList = File.ListFiles(path1)
fileList.Sort(True)
For n = 0 To fileList.Size - 1
file1 = fileList.Get(n)
ListView1.AddSingleLine(file1)
Next
End Sub
I'm getting this on the current release, Version 3.50 on the following code:
B4X:
For I = 0 To WheelNb - 1
...
Next
HOWEVER, the variable I is a global variable, but is being used in a sub. Even though I dimension a NEW variable I within the sub, it causes this problem. By merely changing the variable I within the sub to X (for example),