When I'm troubleshooting a problem, I prefer to use an alternative method to verify something important, instead of trusting the same app (that is also giving me the error) if something is correct or not
When I'm troubleshooting a problem, I prefer to use an alternative method to verify something important, instead of trusting the same app (that is also giving me the error) if something is correct or not
But in this case you could explore wrong directories (or different from those used by the app), while executing the log (file.exists...) when it is useful, you will be sure of what is going to happen.
But in this case you could explore wrong directories (or different from those used by the app), while executing the log (file.exists...) when it is useful, you will be sure of what is going to happen.
As suggested by JohnC (whom I thank!) for some strange reason compiling in release mode the code now works; before I always worked in debug mode.
Thanks again !
B4X:
Dim Shd As String
Shd=GetSharedDirectory
File.WriteString(Shd,"msg2.txt",S)
ftp.Initialize("FTP", Host, 21, Username,Password)
ftp.PassiveMode=True
ftp.UseSSL=False
ftp.UploadFile(Shd,"msg2.txt", True, IndirizzoFTP & "/" & "msg2.txt")
ftp.Close