Hi everyone,
Based on Erel's ThreePagesExample , i want to load last user that loged in txtUser. Last username is stored in logindata.dat
txtUser is empty
How can i do this
Attached you can find my project
Thank you
Based on Erel's ThreePagesExample , i want to load last user that loged in txtUser. Last username is stored in logindata.dat
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("Login")
Page2.Initialize
B4XPages.AddPage("Page 2", Page2)
Page3.Initialize
B4XPages.AddPage("Page 3", Page3)
If File.Exists(File.DirAssets,"logindata.dat") =True Then
username=File.GetText(File.DirAssets,"logindata.dat")
End If
txtUser.Text=username
End Sub
How can i do this
Attached you can find my project
Thank you