I have read and read and written until i am confused
All i am trying to do is write a couple of values and then re-read them
The code is as follows
So where am i going wrong? I have tried many variations of assigning values etc. But i just am not getting it
Thanks all
All i am trying to do is write a couple of values and then re-read them
The code is as follows
B4X:
Sub Activity_Resume
Dim m As Map
m.Initialize
m.Put("PageNumber","")
m.Put("CatNum","")
If File.Exists(File.DirInternal, "Settings.txt") Then
m = File.ReadMap2(File.DirInternal, "Settings.txt", m)
End If
Log(PageNumber)
Log(CatNum)
end sub
Sub Activity_Pause (UserClosed As Boolean)
Dim m As Map
m.Initialize
m.Put("PageNumber", PageNumber)
m.Put("CatNum", PageNumber)
File.WriteMap(File.DirInternal, "Settings.txt",m)
End Sub
So where am i going wrong? I have tried many variations of assigning values etc. But i just am not getting it
Thanks all