Thank you RC.
All my values are returning False?
The file I read - according to NotePad++ contains either {5,True} or {5,False}
so after
Sub Process_Globals
Dim tbState As Boolean
End Sub
Sub Activity_Create(FirstTime As Boolean)
list2 = File.ReadList(File.DirRootExternal, "cs/parameters.txt")
Dim strBool As String = list2.Get(1)
strBool equals "False" or "True".
So far so good.
After
If strBool.ToLowerCase = "true" Then
tbState = True
Else
tbState = False
End If
tbState is either "false" or "true" which makes no sense unless - as I suggested before - it must be
false - or
true - and not
False or
True the right value for a Boolean.
The fact is that the file parameters is read by a program running on a pc - vb.net - and it overwrites
false or
true to
False or
True.
Anyway, the program is running.
Thank you very much for your help.