My program won't compile as I'm getting an error with the for loop.
It's expecting a next statement even though there's one at the end. If I comment the line out, the program compiles, no errors.
B4X:
For x = 1 To 15 '15 users
mail = m.Body
Start = mail.IndexOf(x & ":") + 1
Finish = mail.IndexOf2(CRLF , Start) ''next' expected
mail = mail.SubString2(Start,Finish)
File.Delete(File.DirDefaultExternal, "UserName" & x & ".txt")
File.WriteString(File.DirDefaultExternal, "UserName" & x & ".txt", mail)
Next
It's expecting a next statement even though there's one at the end. If I comment the line out, the program compiles, no errors.