B4X:
Sub Button1_Click
' Dim WhatSentence As String = "Please test This sentence As to Why it Is missing Words in the InputMapAsync"
Dim WhatSentence As String = "The record of the genealogy of Jesus the Messiah the son of David the son of Abraham"
'the and of words are not included with the second WhatSentence!!!! why???
Dim sa1() As String
sa1 = Regex.Split(" ", WhatSentence)
Dim rlst As List
rlst.Initialize
For Each s1 As String In sa1
rlst.Add(s1.Trim)
Next
'Store it in the Map
Dim m As Map
m.Initialize
For x = 0 To rlst.Size -1
Log(rlst.Get(x))
m.Put(rlst.Get(x), False)
Next
'Show the list
InputMapAsync(m, "Select the words", False)
Wait For InputMap_Result
End Sub
I can't figure out what i am doing wrong. The second WhatSentence has missing words in InpuMapAsync, but the first one is ok. They are all separated with space, regex and added to the map.