Hey all,
Dim filelist As List
Dim strAux As String
filelist = File.ListFiles(File.DirInternal)
For i = 0 To filelist.Size - 1
strAux = filelist.Get(i)
If strAux.IndexOf(".png") < 0 Then
filelist.RemoveAt(i+1)
End If
Next
In the code above when execute filelist.RemoveAt(i+1) i get this error java.lang.UnsupportedOperation Exception.
I can not understand what is happening.
Please help.
Thank you
Dim filelist As List
Dim strAux As String
filelist = File.ListFiles(File.DirInternal)
For i = 0 To filelist.Size - 1
strAux = filelist.Get(i)
If strAux.IndexOf(".png") < 0 Then
filelist.RemoveAt(i+1)
End If
Next
In the code above when execute filelist.RemoveAt(i+1) i get this error java.lang.UnsupportedOperation Exception.
I can not understand what is happening.
Please help.
Thank you