i've this error in Debug (rapid) on line: For n = 0 To fileList.Size - 1
Code:
in module:Parsing code. 1.38
Compiling code. 2.25
Compiling layouts code. 0.17
Generating R file. 0.79
Compiling debugger engine code. Error
B4A line: 341For n = 0To fileList.Size - 1
javac 1.6.0_45
shell\src\bloomob\mylifebook\birthdays_subs_0.java:1216: illegal start of expressionfor (_n = BA.numberCast(int.class, 0); (step201 > 0 && _n.<Integer>get().intValue() <= limit201) || (step201 < 0 && _n.<Integer>get().intValue() >= limit201); _n = RemoteObject.createImmutable((int)(_n.<Integer>get().intValue() + step201))) {
^1 error
Code:
B4X:
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