Hi, I have a login form that when the login button is clicked it checks if that user exists. What I need is to use the Username variable in the directory for the list command. Here is my code:
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Username As EditText
End Sub
Sub Login_Click
FTP.List("/public_html/users/Username.txt")
End Sub
Sub FTP_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
Log(ServerPath)
If Success = True Then
If manager.Enabled = True Then
RemoveViews
Activity.LoadLayout("main2")
Else
RemoveViews
Activity.LoadLayout("main")
End If
End If
End Sub