Hi!
My App(should) Read a File and then Preselect the content in a Spinner.
Dim Text1 As String
If File.Exists(File.DirInternal,"lang.txt") Then
Text1 = File.ReadString(File.DirInternal,"lang.txt")
ToastMessageShow(Text1,True)
Spinner1.SelectedIndex = Spinner1.IndexOf(Text1)
Else
ToastMessageShow("Please select your language first!",True)
End If
The showed preselected Index or Text of the Spinner is always the same (wrong)...
The Content of the File definitly exists in the Spinner. I think im making a basic mistake because of not understanding something basic...
My App(should) Read a File and then Preselect the content in a Spinner.
Dim Text1 As String
If File.Exists(File.DirInternal,"lang.txt") Then
Text1 = File.ReadString(File.DirInternal,"lang.txt")
ToastMessageShow(Text1,True)
Spinner1.SelectedIndex = Spinner1.IndexOf(Text1)
Else
ToastMessageShow("Please select your language first!",True)
End If
The showed preselected Index or Text of the Spinner is always the same (wrong)...
The Content of the File definitly exists in the Spinner. I think im making a basic mistake because of not understanding something basic...